The 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 Module 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 8 contains a list of the Thread-compatible Exceptions classes and their default messages, if any.
Class Name | Description or Default Message |
Lists all Thread-compatible exception classes in the class reference. | |
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" |
Base class for thread-compatible exceptions. | |
A template class that can be used to create a thread-compatible exception from an existing exception class. |
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.