Class: TStandardExceptionFormatter

Declaration: ExceptionFormatter.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TExceptionFormatter

Inherited By:

None.

Purpose:

TStandardExceptionFormatter is a class that provides basic error message formatting. TStandardExceptionFormatter is used by default when a custom formatter cannot be found.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Do not derive any classes from TStandardExceptionFormatter.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TStandardExceptionFormatter::TStandardExceptionFormatter

  1. TStandardExceptionFormatter ()
  2. TStandardExceptionFormatter (const TStandardExceptionFormatter & other)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.

Calling Context:

  1. Called to create a TStandardExceptionFormatter object suitable for streaming into.
  2. 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: TStandardExceptionFormatter::~TStandardExceptionFormatter

virtual ~ TStandardExceptionFormatter ()

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: TStandardExceptionFormatter::operator=

TStandardExceptionFormatter & operator =(const TStandardExceptionFormatter & other)

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.

Member Function: TStandardExceptionFormatter::operator<<=

virtual TStream & operator <<= (TStream & fromWhere)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardExceptionFormatter::operator>>=

virtual TStream & operator >>=(TStream & toWhere) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardExceptionFormatter::Format

virtual void Format (const TStandardException & exception, TArchive * Archive, const TLocale & Locale, TText & Message)

Interface Category:

API.

Purpose:

Formats an error message for the specified exception, using the specified message archive. If the parameter Archive is NIL, formats a default error message containing the exception class name and enum value. The parameter Message is filled in with the resulting message.

Calling Context:

Called to format an error message.

Parameters:

Return Value:

None.

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.