#include "rw/rwerr.h" RWxmsg x("exception message");
Class RWxmsg is the base class for the Tools.h++ hierarchy of exceptions, which is used by Math.h++. Although we document the entire class here, your code usually should not create or directly throw RWxmsg objects. Instead, you should write code that may catch an RWxmsg or one of its derived classes. Classes that need to report exceptional circumstances call RWTHROW(RWxmsg&). RWTHROW throws the RWxmsg if exceptions are enabled. Otherwise, RWTHROW calls the current error handler function. For more information, see Section 8.1.5 of the Math.h++ User's Guide, or the Tools.h++ documentation.
RWxmsg(const char*msg);
Creates an exception that returns msg when its method why() is called.
RWxmsg(const RWMessage& rwmsg);
Creates an exception with a message from the localizable RWMessage class instance rwmsg. Section 16.2 of the Tools.h++ User's Guide contains more information.
RWxmsg(const RWxmsg&);
The copy constructor.
RWxmsg(const char* msg, RWBoolean doCopy);
Creates an exception that returns 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).
©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.