Member Functions | |
RWDecimalOverflowErr<T>::leftOperand() RWDecimalOverflowErr<T>::msg() |
RWDecimalOverflowErr<T>::operation() RWDecimalOverflowErr<T>::rightOperand() |
#include <rw/money/decimal.h> /* for RWDecimalOverflowErr<T>*/ /* and RWDecmialInexactErr<T> */ #include <rw/money/mp2int.h> /* For RWMP2Int */ RWDecimal<RWMP2Int> x = "9999999999"; RWDecimal<RWMP2Int> y = x*x; // calls the overflow error //handler
The following header files are available for backward compatibility:
#include <rw/dec52.h> /* RWDecimal52InexactErr, RWDecimal52OverflowErr*/ #include <rw/dec64.h> /* RWDecimal64InexactErr, RWDecimal64OverflowErr*/ #include <rw/dec96.h> /* RWDecimal96InexactErr, RWDecimal96OverflowErr*/
com.roguewave.money.currency.v1_0.PrecisionExceededException
RWDecimalOverflowErr<T> is one of the error objects used to signal problems in computations involving RWDecimal<T> and RWFixedDecimal<T> objects. The other error object is RWDecimalInexactErr<T>. See the "Arithmetic" entry in the RWDecimal<T> and RWFixedDecimal<T> reference sections for details about when the error objects are used. Also, see Section 8.4 of the User's Guide for information about how to set error handlers.
RWDecimal<T> RWDecimalOverflowErr<T>::leftOperand();
Returns the left operand of the operation that generated the error object.
RWCString RWDecimalOverflowErr<T>::msg();
Returns a message describing the error.
RWDecimalBase::Op RWDecimalOverflowErr<T>::operation();
Returns the operation that generated the error object. The returned value Op is an enumerated type scoped in the RWDecimalBase class. Possible values are assign, add, sub, mult, div, powop, pow10op, strctor, and conversion.
RWDecimal<T> RWDecimalOverflowErr<T>::rightOperand();
Returns the right operand of the operation that generated the error object.
©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.