|
How to use ExceptionErrorNotify |
|
|
EurekaLog includes an "ExceptionErrorNotify" event for interaction with the user program when a raised exception is being handled by EurekaLog and an error occurrs.
The syntax of this event is:
private void EurekaLog_ExceptionErrorNotify(Exception Error, EurekaLogSystem.EurekaLogOptions Options, EurekaLogSystem.EurekaActionType Action, ref bool Retry)
This event is called if an error occurs during the processing of any of the following actions:
atSavedLogFile (after) : call made after saving Log File. atSentEmail (after) : call made after sending Email. atSentWebMessage (after) : call made after sending Web message
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 "Retry" to True, EurekaLog will retry the last action. You can use this event to change some EurekaLog settings in accord with the computer configuration. |