Class: TAssertionFailureException

Declaration: Assertions.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TStandardException

Inherited By:

None.

Purpose:

Exception thrown by TExceptionAssertionHandler. It stores a copy of the message passed to the Assertion function.

Instantiation:

Always allocate on the stack.

Deriving Classes:

Clients should use this class directly.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TAssertionFailureException::TAssertionFailureException

  1. TAssertionFailureException ()
  2. TAssertionFailureException (const char * message)
  3. TAssertionFailureException (const TAssertionFailureException & other)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Constructor which takes assertion message.
  3. Copy constructor.

Calling Context:

  1. Called by the stream-in operators and directly.
  2. Called by TExceptionAssertionHandler.
  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: TAssertionFailureException::~TAssertionFailureException

virtual ~ TAssertionFailureException ()

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

TAssertionFailureException & operator =(const TAssertionFailureException & 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: TAssertionFailureException::GetAssertionMessage

void GetAssertionMessage (char message []) const

Interface Category:

API.

Purpose:

Copies the message that was passed to the Assertion function to the given string.

Calling Context:

Called by clients.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TAssertionFailureException::operator<<=

virtual TStream & operator <<= (TStream & fromWhere)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TAssertionFailureException::operator>>=

virtual TStream & operator >>=(TStream & toWhere) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TAssertionFailureException::operator==

virtual bool operator ==(const TStandardException & other) const

Interface Category:

API.

Purpose:

Compares the given exception with this exception.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns true if the given exception object is the same as this exception.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TAssertionFailureException::Throw

virtual void Throw () const

Interface Category:

API.

Purpose:

Throws this exception object.

Calling Context:

Called when this exception is to be thrown.

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.