ScriptRuntimeException

This exception is generated by the new keyword and stored in a VisitResult that propagates through the call stack so that traceback line numbers in the script can be added to it. It is only thrown when the calls get back to Interpreter.evaluate. This exception can also be "thrown" and caught by the script.

Constructors

this
this(string msg, string file, size_t line)

Constructor

Members

Functions

toString
string toString()

Returns a string containing the script code traceback as well as exception message.

Variables

scriptTraceback
StatementNode[] scriptTraceback;

A chain of statement nodes where the exception occurred

thrownValue
ScriptAny thrownValue;

If it is thrown by a script, this is the value that was thrown

Meta