The Threads.h++ Thread-compatible Exception package provides a set of exception classes especially for multi-threaded programming. Most of the exceptions produce default error messages, though they can contain other messages, depending on how they are created. See Chapter 9 of the Threads.h++ User's Guide for more information on the Thread-compatible Exceptions package.
The hierarchy of error types, shown in Figure 12, is significant. When you specify the type of errors for an error handler to catch, it also catches errors of any derived classes.
Table 9 contains a list of the Thread-compatible Exceptions classes and their default messages, if any.
Class Name | Description or Default Message |
RWTHRBoundsError |
"Bounds error" |
RWTHRExternalError |
"External error" |
RWTHRIllegalAcces |
"Illegal access" |
RWTHRIllegalUsage |
"Invalid usage" |
RWTHRInternalError |
"Internal error" |
RWTHRInvalidPointer |
"Invalid pointer" |
RWTHROperationAborted |
"Operation aborted" |
RWTHROperationCanceled |
"Runnable canceled" |
RWTHROperationNotAvailable |
"Operation not available" |
RWTHROperationNotImplemented |
"Operation not implemented" |
RWTHROperationNotSupported |
"Operation not supported" |
RWTHROperationTerminated |
"Operation terminated" |
RWTHRPermissionError |
"Permission error" |
RWTHRResourceLimit |
"Resource limit" |
RWTHRThreadActive |
"A thread is already active within the runnable" |
RWTHRThreadNotActive |
"No thread is active within the runnable" |
RWTHRxmsg |
Base class for thread-compatible exceptions. |
RWTTHRCompatibleException <Exception> |
A template class that can be used to create a thread-compatible exception from an existing exception class. |
©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.