/ Published in: C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
class A { public static vois f() { try { ... B.DoSome(); // safe call, exceptions handled } catch(Exception e) { ... } } public static void f2() { ... //no try-catch block B.DoSome(); // possible unhandled exception } } class B { public static void DoSome() { ... //no try-catch block, possible to raise unhandled exception } }