I know this is not the way to do it, and it isn\'t clean at all. I just wonder if it\'s possible.
If I have a class with a bunch of methods
public class
By default, in ASP.NET you can override the OnError method and then do Server.ClearError to dispose of the exception.
OnError
Server.ClearError
I'm not sure if it applies to your case (only works in Page and Global.asax)
Page
Global.asax