Class: TTimeMediaException

Declaration: TimeMedia.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TStandardException

Inherited By:

None.

Purpose:

Defines the exceptions thrown by time media classes.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Do not derive.

Concurrency:

Multithread safe.

Resource Use:

No special requirements.

Member Function: TTimeMediaException::TTimeMediaException

  1. TTimeMediaException ()
  2. TTimeMediaException (ErrorType error)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Construct a particular exception.

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.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TTimeMediaException::~TTimeMediaException

virtual ~ TTimeMediaException ()

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:

Multithread safe.

Other Considerations:

None.

Member Function: TTimeMediaException::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 directly in derived TimeMedia classes to generate an exception. Used by TimeMedia Frameworks .

Parameters:

Return Value:

None.

Exceptions:

Implements exceptions throw.

Concurrency:

Multithread safe.

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.