Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

2.7 Thread-compatible Exceptions Package

2.7.1 Description

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.

2.7.2 Thread-compatible Exceptions Hierarchy

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.

Figure 12 -- Exception class hierarchy

2.7.3 Index of Exception Classes

Table 9 contains a list of the Thread-compatible Exceptions classes and their default messages, if any.

Table 9 -- Index of Thread-compatible Exceptions classes 

 
Class NameDescription 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.



Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.