I
Issac
Hi,
I am working on error handling for my project.
I got the following code from the web which declare that
it can catch all exceptions in my project rather that
using TRY CATCH in everything single sub/function.
\\\
Public currentdomain As AppDomain
currentdomain = AppDomain.CurrentDomain
AddHandler currentdomain.UnhandledException, AddressOf
MyExceptionHandler
AddHandler Application.ThreadException, AddressOf
MyThreadHandler
///
However, I find that some errors occur in Event/Handler
may not be catched with the above code.
(e.g.TextBox_Validated_Handler)
Am I missing something? Or I should use TRY/CATCH in
every single sub/function?
Please help, appreciate.
Regards,
Issac
I am working on error handling for my project.
I got the following code from the web which declare that
it can catch all exceptions in my project rather that
using TRY CATCH in everything single sub/function.
\\\
Public currentdomain As AppDomain
currentdomain = AppDomain.CurrentDomain
AddHandler currentdomain.UnhandledException, AddressOf
MyExceptionHandler
AddHandler Application.ThreadException, AddressOf
MyThreadHandler
///
However, I find that some errors occur in Event/Handler
may not be catched with the above code.
(e.g.TextBox_Validated_Handler)
Am I missing something? Or I should use TRY/CATCH in
every single sub/function?
Please help, appreciate.
Regards,
Issac