Class: TTelephonyException

Declaration: TelephonyErrors.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TStandardException

Inherited By:

None.

Purpose:

Reports exceptions encountered by telephony classes.

Instantiation:

Typically allocated on the stack.

Deriving Classes:

Do not derive classes from TTelephonyException. A number of exception tags are reserved for telephony developers.

Concurrency:

Same as base class.

Resource Use:

No special requirements.

Member Function: TTelephonyException::TTelephonyException

  1. TTelephonyException (ETelephonyExceptions error)
  2. TTelephonyException (const TTelephonyException &)
  3. TTelephonyException ()

Interface Category:

API.

Purpose:

  1. Constructs an exception using the specified error type.
  2. Copy constructor.
  3. Default constructor.

Calling Context:

  1. Called by telephony classes and derived classes to report an exception.
  2. Called to copy an object.
  3. Called for streaming and assignment.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Same as base class.

Other Considerations:

These are protected constructors.

Member Function: TTelephonyException::~TTelephonyException

virtual ~ TTelephonyException ()

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:

Same as base class.

Other Considerations:

None.

Member Function: TTelephonyException::operator=

TTelephonyException & operator =(const TTelephonyException &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Call directly 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:

Same as base class.

Other Considerations:

None.

Member Function: TTelephonyException::Throw

virtual void Throw () const

Interface Category:

API.

Purpose:

Throws this exception object. Differs from a standard C++ throw *this; where the thrown object is a clone of the argument object. The standard C++ throw would cut the object back to a TStandardException, thereby losing all information embodied by the derived class, which, for TStandardExceptions, is everything.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Implements exceptions throw.

Concurrency:

Same as base class.

Other Considerations:

All derived classes of TStandardException must override Throw() like this: TMySubClass::Throw() const { throw *this;}.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.