Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Currency Module User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

8.5 Error Objects

The InexactErr and OverflowErr error objects contain information about the cause of the error. You can access this information through four methods common to both decimal and fixed decimal versions of the error classes. For example, for the RWDecimal<T> versions of these error objects, the public member functions are:

The enumerated type RWDecimalBase::Op has one of these values: assign, add, sub, mult, div, powop, pow10op, strctor, conversion. If an overflow handler does not exit, an NaN value results. The message is a short string describing the origin of the error.

All the error objects are derived from either RWInternalErr or RWExternalErr. These classes are designed as base classes for objects that are thrown as exceptions. Thus, throwing error objects as exceptions is a reasonable thing to do.



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.