Package: GNAT.Most_Recent_Exception

Dependencies

with Ada.Exceptions;

Description

This package provides routines for accessing the most recently raised exception. This may be useful for certain logging activities. It may also be useful for mimicing implementation dependent capabilities in Ada 83 compilers, but see also GNAT.Current_Exceptions for this usage. Subprograms

Header

package GNAT.Most_Recent_Exception is
 

Other Items:

function Occurrence
  return Ada.Exceptions.Exception_Occurrence;
Returns the Exception_Occurrence for the most recently raised exception in the current task. If no exception has been raised in the current task prior to the call, returns Null_Occurrence.

function Occurrence_Access
  return Ada.Exceptions.Exception_Occurrence_Access;
Similar to the above, but returns an access to the occurrence value. This value is in a task specific location, and may be validly accessed as long as no further exception is raised in the calling task.
end GNAT.Most_Recent_Exception;