How to use ExceptionNotify

Top  Previous  Next

EurekaLog includes an "ExceptionNotify" event for interaction with the user program when an exception is raised. The user-defined routine is called when EurekaLog traps an exception.

 

The syntax of this event is :

 

private void EurekaLog_ExceptionNotify(Exception Error, EurekaLogSystem.EurekaLogOptions Options, ref bool Handled)

 

Use the "Error" parameter to check the exception type.

 

Use the "EurekaLogOptions" parameter to get and set every EurekaLog option at run-time.

 

If you set the "Handled" parameter to False in your routine before returning, the exception will be ignored.

If you set "Handled" to True (the default value) the exception will be handled by EurekaLog.