Class: TViewException

Declaration: ViewExceptions.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TStandardException

Inherited By:

None.

Purpose:

TViewException is used for exceptions that are thrown by the View system.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TViewException::TViewException

  1. TViewException ()
  2. TViewException (ECause cause)
  3. TViewException (const TViewException & copy)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Constructor. This constructor creates the TViewException along with an indication of the cause of the exception.
  3. Copy constructor.

Calling Context:

  1. Called by the stream-in operators or by catch clauses.
  2. Called by the view system to throw an exception and specify the cause of the exception.
  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: TViewException::~TViewException

virtual ~ TViewException ()

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: TViewException::operator=

TViewException & operator =(const TViewException & assign)

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, a TViewException object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TViewException::GetCause

virtual ECause GetCause ()

Interface Category:

API.

Purpose:

Returns the cause of the exception. The cause is returned as one of the ECause enumerator values.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns an ECause enumerator value that indicates the cause of the exception.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TViewException::Throw

virtual void Throw () const

Interface Category:

API.

Purpose:

Throws a View system exception.

Calling Context:

Called internally to throw this exception; that is, when this exception is streamed in.

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.