Class: TDisplayException

Declaration: Display.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TStandardException

Inherited By:

None.

Purpose:

Derived from TStandardException, this class is used for throwing exceptions that occur when there are problems connecting to the host windowing environment. Typically, these problems occur when calling screen constructors and through TDisplay::GetScreen.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TDisplayException::TDisplayException

  1. TDisplayException(EViolation error)
  2. TDisplayException(const TDisplayException& other)
  3. TDisplayException()

Interface Category:

API.

Purpose:

  1. Constructor used when the specific error is known.
  2. Copy constructor.
  3. Default constructor.

Calling Context:

  1. Called to throw a specific exception.
  2. Called to copy an object.
  3. Called by the stream-in operators.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TDisplayException::~TDisplayException

virtual ~TDisplayException()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy the object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TDisplayException::operator=

TDisplayException & operator =(const TDisplayException& other)

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: TDisplayException::Throw

void Throw() const

Interface Category:

API.

Purpose:

Throws a TDisplayException.

Calling Context:

Called this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TDisplayException::GetReason

virtual EViolation GetReason() const

Interface Category:

API.

Purpose:

Gets the reason associated with the TDisplayException exception object, according to the enumerator tag.

Calling Context:

Called this function directly.

Parameters:

Return Value:

Returns the enum that specifies the reason.

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.