The Conroy & Conroy Subroutine Library (2021.3 edition)

TUnified_Exception
What: classs _UE
Layer: 0
Platforms: C++, C#, Pascal (Delphi), PHP, Python

This is the abstract base class for unified exception objects. All methods use the stdcall calling convention.

Attach
void Attach()
procedure Attach
(C++ and Pascal only)
Increment the reference count for the instance.

Code
long Code()
function Code : longint
Returns the error code.

Detach
void Detach()
procedure Detach
(C++ and Pascal only)
Decrement the reference count and self-destruct if reference count goes to zero.

Error_Text
char* Error_Text( long &Size, long &Typ)
function Error_Text( var Size, Typ : longint ) : PAnsiChar
Returns the text of the exception. Typ is filled with the exception type (severity) and Size is set to the length of the returned text. See the Severity method for details on the severity values.

Facility
long Facility()
function Facility : longint
Returns the facility ID.

Facility_Version
long Facility_Version()
function Facility_Version : longint
Returns the version of the facility.

Free
void Free()
procedure Free
(C++ and Pascal only)
Calls the Detach method.

Get_Error
long Get_Error()
function Get_Error : longint
Returns the error code.

Get_Facility
long Get_Facility()
function Get_Facility
Returns the facility ID.

Get_Facility_Version
long Get_Facility_Version()
function Get_Facility_Version : longint
Returns the facility version.

Get_Previous
TDebug_Interface *Get_Previous()
function Get_Previous : PsUnified_Exception
Returns the previous exception instance for chained exceptions. NULL if none.

Severity
long Severity()
function Severity
Returns the severity of the exception.

ValueMeaning
UE_SuccessOperation was succesful.
UE_InformationalOperation was succesful, but additional information is available.
UE_WarningOperation did not complete but no error occurred, or completed with a warning.
UE_ErrorError ocurred.
UE_FatalFatal error ocurred.

Terminate
void Terminate()
procedure Terminate
Called when the object self-destructs.

Version
long Version()
function Version : longint
Returns the facility version.