OnException

From Soldat Community Wiki
Revision as of 11:14, 15 August 2012 by Freeman (talk | contribs) (Created page with "===From the Scripting Manual=== ''procedure OnException(ErrorMessage: string);'' '''Parameter Info:''' ErrorMessage (String): A String containing the error that has ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

From the Scripting Manual

 procedure OnException(ErrorMessage: string);
 
 Parameter Info:
  ErrorMessage (String): A String containing the error that has occured.
 
 Description:
  This procedure will ONLY be called when the server crashes due to an unhandled exception.

Examples

begin
  WriteFile('ErrorLog.txt',ErrorMessage);
  // Dump the error to text file.
end;

External Links