Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWTTHRCompatibleException<Exception>


RWTTHRCompatibleException RWTHRxmsg

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Member Functions

Package

Thread-compatible Exceptions

Synopsis

#include <rw/threxcept/RWTTHRCompatibleException.h>

class MyException {};
throw RWTTHRCompatibleException<MyException>(MyException());

Description

RWTTHRCompatibleException<Exception> is a template class that can be used to create a thread-compatible exception from an existing exception class. A thread-compatible exception is derived from RWTHRxmsg, and possesses clone() and raise() members that allow for a copy of the exception to be stored so that it may be rethrown in the future. The ability to rethrow exceptions in the future allows exceptions to be passed across thread boundaries.

Public Constructors

RWTTHRCompatibleException(const Exception& exception);
RWTTHRCompatibleException(const
              RWTTHRCompatibleException<Exception>& second);

Public Member Operators

RWTTHRCompatibleException<Exception>&
operator=(const RWTTHRCompatibleException<Exception>& second);
operator Exception(void);

Public Member Functions

virtual
RWTHRxmsg*
clone(void) const;
virtual
void
raise(void) const


Previous fileTop of DocumentContentsIndexNext file

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