Class Reference
InterSystems: The power behind what matters   
Documentation  Search
 

class %Exception.SystemException extends %Exception.AbstractException

The %Exception.SystemException class provides access to information about the most recent system error. It is the type of object assigned to the CATCH variable when a system error occurs inside a TRY block. Only the System should create an instance of this class. For system exceptions, the values of the properties should be interpreted as follows:

Name: The name of the exception, such as <UNDEFINED>.
Code: A numerical code that represents the exception, defined by the system.
Location: A string containing the routine and line where the exception occured.
Data: Depending upon the actual exception, extra data about the exception. For example, for an <UNDEFINED> error this would be the name of the variable that was undefined.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
9


Summary

Methods
AsSystemError OnAsSQLMessage


Methods

• private method %OnNew(pName As %String = "", pCode As %String = "", pLocation As %String = "", pData As %String = "", pInnerException As %Exception.AbstractException = $$$NULLOREF, pStack As %String) as %Status
• method AsSystemError() as %String
Convert this system exception to a traditional $ZE string
• private method CodeSet(pCode As %Integer) as %Status
Force Code to be Read-Only
• private method DataSet(pData As %String) as %Status
Force Data to be Read-Only
• private method InnerExceptionSet(pInnerException As %Exception.AbstractException) as %Status
Force InnerException to be Read-Only
• private method LocationSet(pLocation As %String) as %Status
Force Location to be Read-Only
• private method NameSet(pName As %String) as %Status
Force Name to be Read-Only
• method OnAsSQLMessage() as %String
Override this method to provide a custom conversion of an exception to the SQL %msg string.
• private method OnAsStatus() as %Status
Override this method to provide a custom conversion of an exception to a status


Copyright © 1997-2018, InterSystems Corporation