This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Home > Class Reference > %SYS namespace > %Exception.CPPException

%Exception.CPPException

donotuse class %Exception.CPPException extends %Library.SystemBase

For InterSystems internal use only, subject to change without notice

Property Inventory (Including Private)

Method Inventory (Including Private)

Parameters

parameter %MODULENAME = 1;

Properties (Including Private)

property Code as %String);
Code is the error code
property Data as %String);
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);
Location is the location at which the error occurred
property Name as %String);
Name is the name of the error

Methods (Including Private)

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

Subclasses

FeedbackOpens in a new window