class %Exception.CPPException
extends %SystemBase
For InterSystems internal use only, subject to change without notice
parameter %MODULENAME = 1;
property Code
as %String(MAXLEN="");
Code is the error code
property Data
as %String(MAXLEN="");
Data is extra information supplied for certain errors
property InnerException
as %CacheString;
This holds an Inner exception. It is typically set to the caught exception when creating a new exception
object in a catch block.
property Location
as %String(MAXLEN="");
Location is the location at which the error occurred
property Name
as %String(MAXLEN="");
Name is the name of the error
method DisplayString(pLevel As %Integer = 0)
as %String
[ Language = cpp ]
This returns a string that represents the exception. Users should feel free
to modify the format in subclasses