Exago Logo
Search
Generic filters
Exact matches only

Global Event: OnExceptionThrown

OnExcpetionThrown is called when an application exception is thrown in the user interface. Generally used to pass additional or different information to the log file.

Signature

For custom code, the args[] array is structured as follows:

  1. the System.Exception object
  2. the WebReports.Api.Common.Logger object — provides write access to the log file
  3. string of JSON data with the AJAX arguments which can provide more information in the log regarding the users requests which resulted in the exception being thrown.

For .NET Assemblies the method signature is as follows:

bool EventHandlerName(SessionInfo sessionInfo, Exception exception, Logger logger, string jsonArgs)

Expected Return

The OnExceptionThrown event expects a boolean return value. When true, logging of the exception is stopped.

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Table of Contents