SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches

Base class for thread-compatible exceptions. More...

#include <rw/threxcept/RWTHRxmsg.h>

Inheritance diagram for RWTHRxmsg:
RWxmsg RWCancellation RWTHRClosedException RWTHREscrowAlreadyClosed RWTHRExternalError RWTHRIllegalUsage RWTHRInternalError RWTHROperationAborted RWTHROperationCanceled RWTHROperationNotAvailable RWTHROperationNotImplemented RWTHROperationTerminated RWTHRResourceLimit RWTTHRCompatibleException< Exception >

Public Member Functions

 RWTHRxmsg (const RWCString &msg)
 
 RWTHRxmsg (const RWTHRxmsg &second)
 
 RWTHRxmsg (void)
 
virtual ~RWTHRxmsg (void)
 
virtual RWTHRxmsgclone (void) const
 
RWTHRxmsgoperator= (const RWTHRxmsg &second)
 
virtual void raise (void) const
 
- Public Member Functions inherited from RWxmsg
 RWxmsg (const char *msg)
 
 RWxmsg (const RWxmsg &msg)
 
 RWxmsg (RWxmsg &&msg)
 
RWxmsgoperator= (const RWxmsg &)
 
RWxmsgoperator= (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)
 

Detailed Description

RWTHRxmsg is the base class for thread-compatible exceptions. A thread-compatible exception has clone() and raise() members that allow the exception to be copied and stored so that it may be rethrown in the future. These capabilities allow derived exceptions to be passed across thread boundaries.

Constructor & Destructor Documentation

◆ RWTHRxmsg() [1/3]

RWTHRxmsg::RWTHRxmsg ( void )

Constructs an exception with an empty message string.

◆ RWTHRxmsg() [2/3]

RWTHRxmsg::RWTHRxmsg ( const RWCString & msg)

Constructs an exception with the specified message string.

◆ RWTHRxmsg() [3/3]

RWTHRxmsg::RWTHRxmsg ( const RWTHRxmsg & second)

Copy constructor.

◆ ~RWTHRxmsg()

virtual RWTHRxmsg::~RWTHRxmsg ( void )
virtual

Virtual destructor.

Member Function Documentation

◆ clone()

◆ operator=()

RWTHRxmsg & RWTHRxmsg::operator= ( const RWTHRxmsg & second)

Assignment operator.

◆ raise()

Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.