|
Global Catch All Exception in .NET Winform and Console Application |
|
|
By revindex on
8/6/2007 2:49 PM
|
|
|
|
You normally want to catch all exceptions at the highest tier in code so that your program has the chance to display the error message to the user or log it to the appropriate location. Under ASP.NET, you can do so easily by overriding the Application_Error event in Global.asax file. In a windows form or console application, the equivalent global catch all is available by listening to the ThreadException and AppDomain UnhandledException events. (winform, .NET, C#, VB.NET)
|
 |
|
Comments (5)
|
More...
|
|
|