#include "rw/rwerr.h" RWxmsg x("exception message");
This class is the base class for the Tools.h++ hierarchy of exceptions. Although we document the entire class here, your code usually should not create or directly throw RWxmsg objects. Instead, you should expect to write code that may catch an RWxmsg or one of its derived classes. Tools.h++ classes that need to report exceptional circumstances will call RWTHROW(RWxmsg&). RWTHROW will throw the RWxmsg if exceptions are enabled. Otherwise, RWTHROW will call the current Tools.h++ error handler function (see Section 17.4.1 of the User's Guide).
None
RWxmsg(const char*msg);
Creates an exception that will return msg when its method why() is called.
RWxmsg(const RWMessage& rwmsg);
Creates an exception with a message from the localizable RWMessage class instance rwmsg. (See Section 16.2 in the User's Guide).
RWxmsg(const RWxmsg&);
The copy constructor.
RWxmsg(const char* msg, RWBoolean doCopy);
Creates an exception that will return msg when its method why() is called. If doCopy is TRUE, copies msg into a new buffer on the heap; otherwise, simply keeps a pointer to the given location of msg .
const char* why() const;
Returns the message string contained in self.
void raise();
Calls RWTHROW(*this).