Class: TRequestExceptionHandler

Declaration: RequestProcessor.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

Allows extensible handling of exceptions that are caught by the request processor. Exception handlers can be added to a request processor in an ordered list. The handlers are given an opportunity to handle exceptions that are caught by a request processor when handling a request. Only one handler actually handles the exception (the first in the list to return true from HandleException).

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TRequestExceptionHandler::~TRequestExceptionHandler

virtual ~ TRequestExceptionHandler ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TRequestExceptionHandler::HandleException

virtual bool HandleException (const TStandardException & exception)

Interface Category:

API.

Purpose:

Gives the handler an opportunity the handle the exception. If true is returned, no other handlers are given an opportunity to handle the exception and it is considered handled. This member function is overridden by derived classes to provide specific exception handling.

Calling Context:

Called by a request processor when it catches an exception.

Parameters:

Return Value:

Returns true if the exception was handled.

Exceptions:

Throws no exceptions, passes no exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TRequestExceptionHandler::TRequestExceptionHandler

TRequestExceptionHandler ()

Interface Category:

API.

Purpose:

Default constructor.

Calling Context:

Called by derived classes.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not 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.