Class: TGeneralKernelException

Declaration: KernelExceptions.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

Defines an exception for general kernel errors.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TGeneralKernelException::TGeneralKernelException

  1. TGeneralKernelException (EReason whatHappened, NATIVE_ERROR_TYPE NativeErrorCode =0)
  2. TGeneralKernelException (const TGeneralKernelException & copy)
  3. TGeneralKernelException ()

Interface Category:

API.

Purpose:

  1. Constructs an object from EReason and error data.
  2. Copy constructor.
  3. Default constructor.

Calling Context:

  1. Called to construct an object from EReason and error data.
  2. Called to copy an object.
  3. Called by the stream-in operators and derived classes.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGeneralKernelException::operator=

TGeneralKernelException & operator =(const TGeneralKernelException & 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: TGeneralKernelException::~TGeneralKernelException

virtual ~ TGeneralKernelException ()

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: TGeneralKernelException::GetReason

EReason GetReason () const

Interface Category:

API.

Purpose:

Gets the reason for the exception.

Calling Context:

Called to get the reason for the exception.

Parameters:

Return Value:

Returns EReason for the exception.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGeneralKernelException::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.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.