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.
For custom code, the
args array is structured as follows:
WebReports.Api.Common.Loggerobject — provides write access to the log file
- 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)
The OnExceptionThrown event expects a boolean return value. When true, logging of the exception is stopped.