Catch All (handled or unhandled) Exceptions

Posted by andySF on Stack Overflow See other posts from Stack Overflow or by andySF
Published on 2010-05-06T10:28:00Z Indexed on 2010/05/06 10:48 UTC
Read the original article Hit count: 398

Filed under:
|
|

Hi, I want to catch all exceptions raised (handled or unhandled) to log them. for unhandled i use ThreadExceptionEventHandler and UnhandledExceptionEventHandler but i want to catch and exceptions that are in try catch block with or without (Exception e). It's possible to inherit the exceptions class to create a general event?

© Stack Overflow or respective owner

Related posts about c#

Related posts about exception