Return the error message of the current exception, including the stack trace. Outside of an exception handler, this returns an empty string.
Example
info := exceptions.exception_info
Parameters
Param
Mode
Type
Default
Description
s
return value
string
required
the info of the exception
Exceptions
-
See Also
-
Compare With
Ada: Ada.Exceptions.Exception_Info PHP: N/A
Implementation Notes
The Ada subprograms have a saved exception occurrence. The SparForte versions work with the current exception.
When a template is used and the message can be in two different formats, the message will be in the format written to standard error, not the format written to output.
s := exceptions.exception_name
Return the name of the current exception. Outside of an exception handler, this returns an empty string.
Example
name := exceptions.exception_name
Parameters
Param
Mode
Type
Default
Description
s
return value
string
required
the name of the exception
Exceptions
-
See Also
-
Compare With
Ada: Ada.Exceptions.Exception_Name PHP: N/A
Implementation Note
The Ada subprograms have a saved exception occurrence, and return the full name of the exception in dotted notation. The SparForte versions work with the current exception and return the simple exception name.
s := exceptions.exception_status_code
Return the operating system status code to return if the current exception is not handled. Outside of an exception handler, this returns zero.