Exception

Note

Exception is derived from Object class.

All built-in, non-system-exiting exceptions are derived from this class. All user-defined exceptions should also be derived from this class.


Constructor

Exception class has a single constructor:

object Exception:new ( string sExceptionName, string sDefaultErrMsg )

Arguments

These arguments are received by class constructor.

Argument Description
sExceptionName The Exception name
sDefaultErrMsg The object associated to the Exception (usually is a derived of ‘Widget’)

Inherited Methods

These methods are inherited from its super classes:

Class Method Description
Object:getName Returns Exception’s name.
Object:setName Sets the Exception name.

Class Methods

These methods are defined by this class.

Exception:isa

It helpss to verify if the expression is of the determined type
bool Exception:isa( object Exception )