Exception handler (CustomExceptionHandler class) |
This class processes all exceptions that occur in the web application. You can use it to handle all exceptions and run custom actions, such as sending e-mail to administrator or logging the exception to you helpdesk or monitoring system.
The class has only one method: OnException(Exception e)
Example
The following example shows how to handle the OnException event and send the password to the administrator whenever an error occurs:
[C#]
[C#]
|