Class: TLocaleException

Declaration: Localization.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TStandardException

Inherited By:

None.

Purpose:

TLocaleException is an exception class used by the locale classes. It is thrown when an invalid locale is encountered.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Do not derive.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TLocaleException::TLocaleException

  1. TLocaleException ()
  2. TLocaleException (EReason reason)
  3. TLocaleException (const TLocaleException & copy)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Create a TLocaleException 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.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TLocaleException::~TLocaleException

virtual ~ TLocaleException ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TLocaleException::operator=

TLocaleException & operator =(const TLocaleException & rhs)

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.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TLocaleException::GetReason

EReason GetReason () const

Interface Category:

API.

Purpose:

Return the reason this exception was thrown.

Calling Context:

Called by clients.

Parameters:

Return Value:

The reason the exception was thrown.

Exceptions:

Throws no exceptions.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TLocaleException::Throw

virtual void Throw () const

Interface Category:

API.

Purpose:

Polymorphic throw operation.

Calling Context:

Called by clients.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TLocaleException::operator>>=

virtual TStream & operator >>=(TStream & toStream) 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: TLocaleException::operator<<=

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

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

bool operator ==(const TStandardException & other) const

Interface Category:

API.

Purpose:

Comparison operator.

Calling Context:

Called by clients.

Parameters:

Return Value:

Returns true if the two exceptions were thrown for the same reason.

Exceptions:

Throws no exceptions.

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.