Class Reference
IRIS for UNIX 2019.2
InterSystems: The power behind what matters   
Documentation  Search
  [%SYS] >  [%Exception] >  [CPPException]
Private  Storage   

class %Exception.CPPException extends %SystemBase

For InterSystems internal use only, subject to change without notice

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
2 6 2


Summary

Properties
Code Data InnerException Location Name
iStack

Methods
BinDisplayString DisplayString

Subclasses
%Exception.AbstractException

Parameters

• parameter %MODULEGENERATIONOPTIONS = 0;
• parameter %MODULENAME = 1;

Properties

• 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 %RawString;
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
• property iStack as %String(MAXLEN="");
iStack holds an internal representation of the execution stack at the time of the exception.

Methods

• method BinDisplayString(pLevel As %Integer = 0) as %Binary [ Language = cpp ]
• 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


Copyright (c) 2019 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.