fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. static void Main(string[] args)
  6. {
  7. try { Console.WriteLine(1); throw new Exception(); }
  8. catch(DivideByZeroException) { Console.WriteLine(2); }
  9. finally { Console.WriteLine(3); }
  10. Console.WriteLine(4);
  11. }
  12. }
Runtime error #stdin #stdout #stderr 0s 134848KB
stdin
Standard input is empty
stdout
1
3
stderr
Unhandled Exception:
System.Exception: Exception of type 'System.Exception' was thrown.
  at Test.Main (System.String[] args) [0x00006] in <36e48b7d10174746b6e5f82c56ffb847>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.Exception: Exception of type 'System.Exception' was thrown.
  at Test.Main (System.String[] args) [0x00006] in <36e48b7d10174746b6e5f82c56ffb847>:0