The Money.h++ Java library provides three kinds of exceptions:
Precision exceeded exception:
com.roguewave.money.currency.v1_0.PrecisionExceededException. Occurs whenever any operation inside Money.h++ causes the precision of a Money object to be violated. This corresponds to the overflow, loss of precision, and numeric errors described above.
Mismatched currencies exception:
com.roguewave.money.currency.v1_0.MismatchedCurrenciesException. Occurs whenever an operation is attempted between two Money objects without using the MoneyCalculator.
Invalid exchange exception: com.roguewave.money.currency.v1_0.InvalidExchangeException. Occurs whenever a currency exchange could not be properly completed.
All of these exception classes extend the public abstract class com.roguewave.money.currency.v1_0.MoneyException.
©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.