Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Threads Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWTTHRCompatibleException<Exception>

Module:  Threads   Package:  Thread-compatible Exceptions


RWTTHRCompatibleException RWTHRxmsg

Local Index

Members

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 Destructor

~RWTTHRCompatibleException();

Public Member Operators

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

Public Member Functions

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


Previous fileTop of DocumentContentsIndex pageNext file

© 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.