SetCustomErrorMessage procedure

Top  Previous  Next

EurekaLog includes a procedure called SetCustomErrorMessage, that enables you to set a custom error message to display in the Exception Dialog instead of exception message (only when the dialog is not displayed in detailed mode).

 

NOTE: Use an empty string to remove any pevious custom error message (Example: SetCustomErrorMessage('');).

 

Syntax of this function is as follows:

 

procedure SetCustomErrorMessage(const Value: string);

 

 

Example:

 

 

uses ExceptionLog; // The required unit...

 

begin

   ...

   SetCustomErrorMessage('An error has occurred.');

   ...

end;