fork(4) download
  1. using System;
  2. static class Program {
  3. static void Main(string[] args) {
  4. try {
  5. try { throw new A(); }
  6. finally { throw new B(); }
  7. }
  8. catch (B) { }
  9. Console.WriteLine("All done!");
  10. }
  11. }
  12.  
  13. class A : Exception { }
  14.  
  15. class B : Exception { }
Runtime error #stdin #stdout #stderr 0.04s 34840KB
stdin
Standard input is empty
stdout
All done!
stderr
Unhandled Exception: A: Exception of type 'A' was thrown.
  at Program.Main (System.String[] args) [0x00000] in <filename unknown>:0