Class: Error
Description
This optional property provides error-specific context.
Syntax
Error.context
Returns
The exception context is defined in the initInst expression of the Class.new() that created the Error object. The context parameter can be used to provide optional exception-specific context that may be useful to the calling program.
When Became Available
v6.0
Example
catch Error {
set ET=Error.type
set CONTEXT=Error.context
if ET["%GTM" do ZE^UTLERR quit
set RM=Error.description
set ET=ET_"-"_RM_"-"_Error.thrownAt
do ^UTLERR
}