![](../../Home/Icons/Home.gif)
![](../icons/UpCNM.gif)
![](../icons/CNMContext.gif)
![](../../Home/Icons/Search.gif)
Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
None.
Inherited By:
None.
Purpose:
Defines an exception for a bad task handle.
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
None.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
- TTaskException (EReason whatHappened, NATIVE_ERROR_TYPE NativeErrorCode =0)
- TTaskException (const TTaskException & copy)
- TTaskException ()
Interface Category:
API.
Purpose:
- Constructs an object from EReason and error data.
- Copy constructor.
- Default constructor.
Calling Context:
- Called to construct an object from EReason and error data.
- Called to copy an object.
- Called by the stream-in operators and derived classes.
Parameters:
- EReason whatHappened -The error code for what happened.
- NATIVE_ERROR_TYPE NativeErrorCode =0 -The actual error code from the underlying operating system.
- const TTaskException & copy -The object to be copied.
- Takes no parameters.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
TTaskException & operator =(const TTaskException & 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.
virtual ~ TTaskException ()
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.
EReason GetReason () const
Interface Category:
API.
Purpose:
Gets the reason for the exception.
Calling Context:
Called to get the reason for the exception.
Parameters:
Return Value:
Returns EReason for the exception.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void Throw () const
Interface Category:
API.
Purpose:
Throws the exception.
Calling Context:
Called by the client code to throw the exception.
Parameters:
Return Value:
None.
Exceptions:
Throws the exception requested.
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.