strict interface exception

Strict interface for all classes that can be thrown as exceptions.

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.