RWTTHRCompatibleException RWTHRxmsg
#include <rw/threxcept/RWTTHRCompatibleException.h> class MyException {}; throw RWTTHRCompatibleException<MyException>(MyException());
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.
RWTTHRCompatibleException(const Exception& exception);
Constructs a new instance, initializing the internal exception instance to exception.
RWTTHRCompatibleException(const RWTTHRCompatibleException<Exception>& second);
Copy construct a new instance whose exception value is initialized from the exception within second.
RWTTHRCompatibleException<Exception>& operator=(const RWTTHRCompatibleException<Exception>& second);
Copies the internal exception within second to self.
operator Exception(void);
Cast operator. Returns internal Exception instance.
virtual RWTHRxmsg* clone(void) const;
Makes a copy of this instance so that it may be stored.
virtual void raise(void) const
Throws the exception stored in this instance.
©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.