[SparForte][Banner]
[Top Main Menu] Intro | Tutorials | Reference | Packages | Examples | Contributors   [Back Page]      [Next Page]  

Exceptions Package

The SparForte built-in exceptions package provides subprograms to manipulate exceptions.

GCC Ada Equivalent: Ada.Exceptions

s := exceptions.exception_info

 

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.

Example

status := exceptions.exception_status_code

Parameters

Param Mode Type Default Description
s return value natural required the status code of the exception

Exceptions

-

See Also

-

Compare With

Ada: N/A (AdaScript extension)
PHP: N/A

 
[Right Submenu]

 Summary

 arrays

 btree_io

 calendar

 cgi

 chains

 command_line

 db/ postgresql

 dbm

 directory_operations

 doubly_linked...

 dynamic_hash_...

 enums

 exceptions

 files

 gnat.cgi

 gnat.crc32

 hash_io

 lock_files

 memcache

 memcache.highread

 mysql

 mysqlm

 numerics

 os

 pen

 pen (OpenGL)

 records

 sound

 source_info

 stats

 strings

 System

 teams

 templates

 text_io

 units

[Back to Top] Back To Top [Small Forte Symbol]