SourcePro® 2022.1 |
SourcePro® API Reference Guide |
Template class for creating a thread-compatible exception from an existing exception class. More...
#include <rw/threxcept/RWTTHRCompatibleException.h>
Public Member Functions | |
RWTTHRCompatibleException (const Exception &exception) | |
RWTTHRCompatibleException (const RWTTHRCompatibleException< Exception > &second) | |
~RWTTHRCompatibleException (void) | |
virtual RWTHRxmsg * | clone (void) const |
operator Exception (void) const | |
RWTTHRCompatibleException< Exception > & | operator= (const RWTTHRCompatibleException< Exception > &second) |
virtual void | raise (void) const |
Public Member Functions inherited from RWTHRxmsg | |
RWTHRxmsg (void) | |
RWTHRxmsg (const RWCString &msg) | |
RWTHRxmsg (const RWTHRxmsg &second) | |
virtual | ~RWTHRxmsg (void) |
RWTHRxmsg & | operator= (const RWTHRxmsg &second) |
Public Member Functions inherited from RWxmsg | |
RWxmsg (const char *msg) | |
RWxmsg (const RWxmsg &msg) | |
RWxmsg (RWxmsg &&msg) | |
RWxmsg & | operator= (const RWxmsg &) |
RWxmsg & | operator= (RWxmsg &&msg) |
void | swap (RWxmsg &rhs) |
virtual const char * | why () const |
Additional Inherited Members | |
Protected Member Functions inherited from RWxmsg | |
RWxmsg (const char *msg, bool doCopy) | |
Related Functions inherited from RWxmsg | |
#define | RWTHROW(a) |
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< Exception >::RWTTHRCompatibleException | ( | const Exception & | exception | ) |
Constructs a new instance, initializing the internal exception instance to exception.
RWTTHRCompatibleException< Exception >::RWTTHRCompatibleException | ( | const RWTTHRCompatibleException< Exception > & | second | ) |
Copy constructor. Constructs a new instance whose exception value is initialized from the exception within second.
RWTTHRCompatibleException< Exception >::~RWTTHRCompatibleException | ( | void | ) |
Destructor.
|
virtual |
Makes a copy of this so it can be stored.
Reimplemented from RWTHRxmsg.
RWTTHRCompatibleException< Exception >::operator Exception | ( | void | ) | const |
Cast operator. Returns internal Exception
instance.
RWTTHRCompatibleException<Exception>& RWTTHRCompatibleException< Exception >::operator= | ( | const RWTTHRCompatibleException< Exception > & | second | ) |
Copies the internal exception within second to self.
|
virtual |
Throws the exception stored in this.
Reimplemented from RWTHRxmsg.
Copyright © 2022 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |