Class: TInvalidUseOfNILPointer

Declaration: GenericExceptions.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TStandardException

Inherited By:

None.

Purpose:

Thrown when an invalid use of a NIL pointer is detected.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Derive for more specific exception.

Concurrency:

Multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TInvalidUseOfNILPointer::TInvalidUseOfNILPointer

  1. TInvalidUseOfNILPointer ()
  2. TInvalidUseOfNILPointer (const TInvalidUseOfNILPointer & copy)
  3. TInvalidUseOfNILPointer (unsigned long whatHappened)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.
  3. Construct exception with a specific reason (derived classes only).

Calling Context:

  1. Called by the stream-in operators and to create an instance to assign to.
  2. Called to copy an object.
  3. Called when an error is detected.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TInvalidUseOfNILPointer::operator=

TInvalidUseOfNILPointer & operator =(const TInvalidUseOfNILPointer & 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:

Multithread safe.

Other Considerations:

None.

Member Function: TInvalidUseOfNILPointer::~TInvalidUseOfNILPointer

virtual ~ TInvalidUseOfNILPointer ()

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:

Multithread safe.

Other Considerations:

None.

Member Function: TInvalidUseOfNILPointer::Throw

virtual void Throw () const

Interface Category:

API.

Purpose:

Used to polymorphically throw an exception.

Calling Context:

Called to throw an exception of this type.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

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.