I've WS client written in C#. Is there any way I can handle all exceptions in one place? Now WS methods are executed in many places so I have to write many try...catch to handle them all.
Thanks
use
AppDomain.CurrentDomain.UnhandledException
before creating winform, you need to add this line
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With