Exception (open)
Base object type for exceptions. It is recommended this type is used to derive exceptions from; it provides handy stuff like an exception trace and error traces of uncaught exceptions.
Syntax
// Core function, no LOADLIB necessary
OBJECTTYPE Exception
Constructor
- MACRO NEW(STRING what, RECORD options)
Constructor for an exception
Variables
- STRING what
Message for this exception
Properties
- PROPERTY trace
Contains the unwind trace for this exception
Functions
- RECORD FUNCTION EncodeForIPC()
Encode into a record for transfer over IPC. Use RegisterReceivedExceptionType to register decoders for other types of exception.