Class: TGraphicsInternalException

Declaration: GraphicsExceptions.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TGraphicsException

Inherited By:

None.

Purpose:

This is an abstract base class to provide a set of data types and functions for handling exceptions that are internal to the Graphics system.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Classes can be derived from this class whenever user-defined exception types are needed.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TGraphicsInternalException::TGraphicsInternalException

  1. TGraphicsInternalException ()
  2. TGraphicsInternalException (EReason whatHappened)
  3. TGraphicsInternalException (const TGraphicsInternalException & copy)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Constructs a new internal graphic exception object using a given error code.
  3. Copy constructor.

Calling Context:

  1. Called by the stream-in operators and directly.
  2. Called to specify an error code.
  3. 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: TGraphicsInternalException::operator=

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

virtual ~ TGraphicsInternalException ()

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

EReason GetReason () const

Interface Category:

API.

Purpose:

Determines what reason was used when this exception object was created.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns the error code for this exception object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGraphicsInternalException::Throw

virtual void Throw () const

Interface Category:

API.

Purpose:

Causes this object to throw an exception.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws an exception of the type that is defined by this object.

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.