Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Tools Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page


Module:  Essential Tools Module   Group:  Miscellaneous Classes

Does not inherit

Local Index



#include <rw/rwerr.h>
RWxmsg x("exception message");


This class is the base class for the hierarchy of exceptions in the Essential Tools Module. (See also Section, "RWxmsg," in the Essential Tools Module User's Guide.) 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. Essential Tools Module classes that need to report exceptional circumstances will call RWTHROW(RWxmsg&). RWTHROW will throw the RWxmsg if exceptions are enabled. Otherwise, RWTHROW will call an appropriate current Essential Tools Module error handler function (see Section 10.3, "Error Reporting and Error Handling," in the Essential Tools Module User's Guide

RWxmsg provides a basic interface for exceptions, from which an exception string is always available. This exception string is obtained through the why method, and is represented as a const char*, single-byte character sequence.



Public Constructors

RWxmsg(const char*msg);
RWxmsg(const RWMessage& rwmsg);
RWxmsg(const RWxmsg&);

Protected Constructor

RWxmsg(const char* msg, bool doCopy);

Public Member Functions

const char*
why() const;

Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.