Class: TAudioException

Declaration: Audio.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TStandardException

Inherited By:

None.

Purpose:

An exception class thrown by Audio classes.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Not normally derived.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TAudioException::TAudioException

  1. TAudioException ()
  2. TAudioException (EAudioExceptions error)
  3. TAudioException (const TAudioException &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Constructor that takes one of the error codes.
  3. Copy constructor.

Calling Context:

  1. Call directly in catch construct or to create an exception that can be streamed into.
  2. Call directly in catch construct to create a particular exception.
  3. Call directly 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: TAudioException::~TAudioException

virtual ~ TAudioException ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called by Runtime 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: TAudioException::operator=

TAudioException & operator =(const TAudioException &)

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:

Not multithread safe.

Other Considerations:

None.

Member Function: TAudioException::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:

Not multithread safe.

Other Considerations:

All derived classes of TStandardException must override Throw() like this: TMyDerivedClass::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.