Error address and callstack

<< Click to Display Table of Contents >>

Navigation:  Executing script >

Error address and callstack

When exception is raised during script execution, call stack and source line are saved into Parser.ExceptionStack and ExceptionLine properties.

Exceptions raised by scripter engine itself are of EHtScriptException type and contains the following fields:

 

  Sender: THtScriptParser - Scripter

  SourcePos: integer - absolute position in source code

  Line: integer  - line in source code

  ScriptUnit: string - name of unit (empty for main program).