Class: TExceptionEnclosure

Declaration: KernelExceptions.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

An abstract base class for all Kernel Exceptions.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

KernelException classes.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TExceptionEnclosure::~TExceptionEnclosure

virtual ~ TExceptionEnclosure ()

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: TExceptionEnclosure::GetEnclosedException

TStandardException * GetEnclosedException ()

Interface Category:

API.

Purpose:

Returns a pointer to a TSE object if this exception contains an embedded exception object. Otherwise, returns NIL.

Calling Context:

Called to get access to the native error code. The caller adopts the storage pointed by the returned value.

Parameters:

Return Value:

A pointer to the embedded exception object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

The caller is responsible for deleting the storage associated with the return value.

Member Function: TExceptionEnclosure::Throw

virtual void Throw () const

Interface Category:

API.

Purpose:

Throws the exception.

Calling Context:

Called by the client code to throw the exception.

Parameters:

Return Value:

None.

Exceptions:

Throws the exception requested.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TExceptionEnclosure::TExceptionEnclosure

  1. TExceptionEnclosure (unsigned long whatHappened =0, TStandardException * adoptThis =NIL)
  2. TExceptionEnclosure (const TExceptionEnclosure & copy)

Interface Category:

API.

Purpose:

  1. Creates an object with a given reason as whatHappened or a TStandardException to be adopted.
  2. Copy constructor.

Calling Context:

  1. Called to create an object.
  2. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TExceptionEnclosure::operator=

TExceptionEnclosure & operator =(const TExceptionEnclosure & copy)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TExceptionEnclosure::SetEnclosedException

void SetEnclosedException (TStandardException * adoptThis)

Interface Category:

API.

Purpose:

Sets the enclosed exception object for this class.

Calling Context:

Called to set the TSE object.

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.