Class: TArchiveException

Declaration: ArchiveExceptions.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TStandardException

Inherited By:

TArchiveAccessError TArchiveAlreadyExists TArchiveNotFound TArchivedObjectNotFound

Purpose:

TArchiveException is an abstract base class for archive exceptions. All exceptions originating in the TArchive, TArchiveKey, TArchiveEnvelope, TArchiveIterator or TArchiveLocaleIterator classes are derived from this class. Note that these classes may also pass through other exceptions not derived from TArchiveException. TArchiveException is a derived class of TStandardException. It does not implement any protocol beyond that supplied by TStandardException. It simply provides a convenient way to catch all exceptions generated by the archive classes.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

This class must be derived.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TArchiveException::~TArchiveException

virtual ~ TArchiveException ()

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

  1. TArchiveException ()
  2. TArchiveException (unsigned long reason)
  3. TArchiveException (const TArchiveException & copy)

Interface Category:

API.

Purpose:

  1. Default constructor. Creates an uninitialized object.
  2. Create a TArchiveException with the given reason.
  3. Copy constructor.

Calling Context:

  1. Called by the stream-in operators.
  2. Called by clients.
  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: TArchiveException::operator=

TArchiveException & operator =(const TArchiveException & copy)

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.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.