%Exception.StatusException
class %Exception.StatusException extends %Exception.AbstractException
Class to hold %Status style exceptionsIf you wish to create one with %New then the 4th argument is a $lb of data values to the error %Status, e.g.
Set exception=##class(%Exception.StatusException).%New(Name,Code,Location,$lb(arg1,arg2,arg3,arg4))
Property Inventory
Method Inventory
Properties
property NextException as %RawString;
Container for additional exceptions in the %Status value
Methods
classmethod CreateFromStatus(pSC As %Status) as %Exception.AbstractException
Convert a %Status into an exception
This returns a string that represents the exception. Users should feel free
to modify the format in subclasses
method OnAsSQLMessage() as %String
Inherited description: Override this method to provide a custom conversion of an exception to the SQL %msg string.
deprecated method SQLMessageString(pLevel As %Integer = 0)
This returns a string that represents the SQL %msg string. Users should feel free
to modify the format and content in subclasses
DEPRECATED - use AsSQLMessage() instead. Override OnAsSQLMessage() to customize the value returned
by AsSQLMessage().
classmethod ThrowIfInterrupt(sc As %Status) as %Exception.AbstractException
If
sc
is an <INTERRUPT> or a hard error like <FILEFULL> or <DATABASE>,
use ZTRAP to re-throw the error. For any other error status, turn it into an exception and return that.
This method should not be called with an OK status.Inherited Members
Inherited Properties
Inherited Methods
- %ClassIsLatestVersion()
- %ClassName()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %New()
- %OriginalNamespace()
- %PackageName()
- %SetModified()
- AsSQLCODE()
- AsSQLMessage()
- AsStatus()
- DisplayString()
- Log()
- OutputToDevice()
- OutputToStream()
- SQLMessageString()
- StackAsArray()