Class: TFPExceptionHandler

Declaration: FPEnvironment.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

The constructor of this class: - Saves the current settings of the exception flags (old history). - Saves its argument (for later reference handling requests). - Resets the flags to off (creates an empty history). When leaving scope, the object's destructor: - Saves a temporary copy of now-current flags (recent history), - logical OR's recent into old history (complete history). - Updates the CPU flags with the complete history. - If the same exception occurs in both handling requests and recent history, then it throws the highest priority floating-point exception occurring in both, with the fCurrentExceptions field of the thrown exception set to the intersection of the recent history flags and the requested flags.

Instantiation:

Always allocate on the stack.

Deriving Classes:

Do not derive from this class.

Concurrency:

Multithread safe.

Resource Use:

No special requirements.

Member Function: TFPExceptionHandler::TFPExceptionHandler

TFPExceptionHandler (TFPExceptionSet handlingEnableSet)

Interface Category:

API.

Purpose:

The constructor of this class: - Saves the current settings of the exception flags (old history). - Saves its argument (for later reference handling requests). - Resets the flags to off (creates an empty history).

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TFPExceptionHandler::~TFPExceptionHandler

~ TFPExceptionHandler ()

Interface Category:

API.

Purpose:

Destructor. When leaving scope, the object's destructor : - Saves a temporary copy of now-current flags (recent history), - logical OR's recent into old history (complete history). - Updates the CPU flags with the complete history. - If the same exception occurs in both handling requests and recent history, then it throws the highest priority floating-point exception occurring in both, with the fCurrentExceptions field of the thrown exception set to the intersection of the recent history flags and the requested flags.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TFPExceptionHandler::GetRequestedExceptions

TFPExceptionSet GetRequestedExceptions () const

Interface Category:

API.

Purpose:

Returns the exception set passed to the constructor.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns the exception set passed to the constructor.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TFPExceptionHandler::GetSavedExceptions

TFPExceptionSet GetSavedExceptions () const

Interface Category:

API.

Purpose:

Returns the exception set active at the time the constructor was invoked.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns the exception set active at the time the constructor was invoked.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.