Difference between revisions of "TScript.TOnException"

From Soldat Community Wiki
Jump to: navigation, search
(Error Types)
Line 12: Line 12:
  
 
==Error Types==
 
==Error Types==
  ErNoError, erCannotImport, erInvalidType, ErInternalError, erInvalidHeader, erInvalidOpcode, erInvalidOpcodeParameter,
+
*ErNoError
  erNoMainProc, erOutOfGlobalVarsRange, erOutOfProcRange, ErOutOfRange, erOutOfStackRange, ErTypeMismatch,
+
*erCannotImport
  erUnexpectedEof, erVersionError, ErDivideByZero, ErMathError, erCouldNotCallProc, erOutofRecordRange,
+
*erInvalidType
  erOutOfMemory, erException, erNullPointerException, erNullVariantError, erInterfaceNotSupported, erCustomError
+
*ErInternalError
 
+
*erInvalidHeader
 +
*erInvalidOpcode
 +
*erInvalidOpcodeParameter
 +
*erNoMainProc
 +
*erOutOfGlobalVarsRange
 +
*erOutOfProcRange
 +
*ErOutOfRange
 +
*erOutOfStackRange
 +
*ErTypeMismatch
 +
*erUnexpectedEof
 +
*erVersionError
 +
*ErDivideByZero
 +
*ErMathError
 +
*erCouldNotCallProc
 +
*erOutofRecordRange
 +
*erOutOfMemory
 +
*erException
 +
*erNullPointerException
 +
*erNullVariantError
 +
*erInterfaceNotSupported
 +
*erCustomError
 
[[Category:Types]]
 
[[Category:Types]]

Revision as of 18:07, 21 August 2013

Description

Type used by TScript.OnException as an event handler type.

Declaration

 function (ErrorCode: TErrorType; Message, UnitName, FunctionName: string; Row, Col: Cardinal): Boolean
  ErrorCode: See below!
  Message: Error message to be displayed
  UnitName: Unit in which the error occured
  FunctionName: Function that caused an error
  Row,Col: Cursor position in file where error occured
  Result: True if exception is handled, otherwise script is disabled.

Error Types

  • ErNoError
  • erCannotImport
  • erInvalidType
  • ErInternalError
  • erInvalidHeader
  • erInvalidOpcode
  • erInvalidOpcodeParameter
  • erNoMainProc
  • erOutOfGlobalVarsRange
  • erOutOfProcRange
  • ErOutOfRange
  • erOutOfStackRange
  • ErTypeMismatch
  • erUnexpectedEof
  • erVersionError
  • ErDivideByZero
  • ErMathError
  • erCouldNotCallProc
  • erOutofRecordRange
  • erOutOfMemory
  • erException
  • erNullPointerException
  • erNullVariantError
  • erInterfaceNotSupported
  • erCustomError