Class: TMessageStreamException

Declaration: MessageStream.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TStandardException

Inherited By:

TRequestReplyException

Purpose:

TMessageStreamException is thrown when exceptional conditions occur in TMessageStream.

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: TMessageStreamException::TMessageStreamException

  1. TMessageStreamException ()
  2. TMessageStreamException (ErrorType err, long msg =0)
  3. TMessageStreamException (ErrorType err, long msg, char * msgStr, void * cd)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Creates a TMessageStreamException with the specified error type and message.

Calling Context:

  1. Called by the stream-in operators and anywhere the definition of a TMessageStreamException is desired.
  2. Called to create a TMessageStreamException with the specified error type and message.
  3. Called to create a TMessageStreamException with the specified error type, message, and message string.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TMessageStreamException::~TMessageStreamException

virtual ~ TMessageStreamException ()

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

virtual void Throw () const

Interface Category:

API.

Purpose:

Throws this exception.

Calling Context:

Called when an exceptional condition occurs. Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TMessageStreamException::GetReason

unsigned long GetReason () const

Interface Category:

API.

Purpose:

Overrides the inherited TStandardException function. Gets the reason why this exception was thrown.

Calling Context:

Called after catching this exception.

Parameters:

Return Value:

Returns the errror code.

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.