The <class>Exception.PythonException</class> class provides access to information about the most recent python error. More...
Public Member Functions | |
_.Library.Status | OnNew (_.Library.String pName, _.Library.String pCode, _.Library.String pLocation, _.Library.String pData, _.Exception.AbstractException pInnerException, _.Library.String pStack, _.SYS.Python pObject) |
The <class>Exception.PythonException</class> class provides access to information about the most recent python error. More... | |
_.Library.String | AsSystemError () |
Convert this exception to a traditional $ZE string. | |
_.Library.String | DisplayString (_.Library.Integer pLevel) |
Return a string that represents the exception. | |
_.Library.String | OnAsSQLMessage () |
Custom conversion of an exception to the SQL msg string. | |
![]() | |
_.Library.Integer | AsSQLCODE () |
Return the SQLCODE value corresponding to the exception. | |
_.Library.String | AsSQLMessage () |
Return the SQL msg string describing details of the exception. | |
_.Library.Status | AsStatus () |
Convert this exception to a Status compatible value. | |
_.Library.Status | Log () |
Call the log function (LOG^ETN) to log this exception. More... | |
OutputToDevice (_.Library.Integer pLevel) | |
This outputs the string representation of the exception to the current device, recursively. More... | |
OutputToStream (_.Library.CharacterStream pStream, _.Library.Integer pLevel) | |
This outputs the string representation of the exception to the supplied stream, recursively. More... | |
SQLMessageString (_.Library.Integer pLevel) | |
This returns a string that represents the SQL msg string. More... | |
_.Library.Status | StackAsArray (array) |
This method sets an array that is passed by reference to the execution stack at the time of the exception. More... | |
Public Attributes | |
ExceptionObject | |
More... | |
![]() | |
Code | |
Code is the error code. More... | |
Data | |
Data is extra information supplied for certain errors. More... | |
InnerException | |
This holds an Inner exception. More... | |
Location | |
Location is the location at which the error occurred. More... | |
Name | |
Name is the name of the error. More... | |
Private Member Functions | |
_.Library.Status | __OnAsStatus () |
Custom conversion of an exception to a status. | |
The <class>Exception.PythonException</class> class provides access to information about the most recent python error.
It is the type of object assigned to the CATCH variable when a python error occurs inside a TRY block. Only the System should create an instance of this class.
_.Library.Status OnNew | ( | _.Library.String | pName, |
_.Library.String | pCode, | ||
_.Library.String | pLocation, | ||
_.Library.String | pData, | ||
_.Exception.AbstractException | pInnerException, | ||
_.Library.String | pStack, | ||
_.SYS.Python | pObject | ||
) |
The <class>Exception.PythonException</class> class provides access to information about the most recent python error.
It is the type of object assigned to the CATCH variable when a python error occurs inside a TRY block. Only the System should create an instance of this class.
ExceptionObject |