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

8.1 Overview

The operations on RWDecimal classes can result in three general types of error:

In the Currency Module library, if an overflow or an inexact error occurs during one of the three exact arithmetic operations, an error handler is called. The default overflow error handler throws an RWDecimalOverflowErr<T> exception object, or prints an error and exits if your compiler doesn't support exceptions. The default inexact error handler prints an error message but does not exit. In Section 8.4, "Error-Handling,", we'll describe how to change these default behaviors.

Remember, you can perform operations on different currencies if you use a money calculator object. However, if you an attempt to perform an arithmetic operation on RWMoney objects of different currencies the operator throws an RWExternalError exception. See the Essential Tools Module documentation for information on RWExternalError.

If the factory cannot create an exchange object, it returns an invalid exchange object. For example, if you request a conversion from French Francs to French Francs.



Previous fileTop of DocumentContentsIndex pageNext 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.
Contact Rogue Wave about documentation or support issues.