class runtime_exception

When the runtime detects an error during a function call, it will generate and return an instance of this class.

This object is not used when user code throws an exception, but in all cases where the error is generated internally.

Inheritance

class runtime_exception : exception

Methods

int getError ()Returns the error code for this exception.
string getMessage ()Returns the error message for this exception.

Reference

method int getError ()

Returns the error code for this exception.

This can be any non-zero value. Implementing script classes can just return typeof(this) here.


method string getMessage ()

Returns the error message for this exception.

Implementing classes should return an empty string rather than null when no message is available.