Package ome.model.units
Class BigResult
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- ome.model.units.BigResult
-
- All Implemented Interfaces:
java.io.Serializable
public class BigResult extends java.lang.Exception
Checked exception which is thrown from unit methods which can possibly overflow. Use ofBigDecimal
in theConversion
prevents the overflow from happening prematurely, but once the value is to be returned to the client, the ome.model (or dependent objects) will be forced to transform theBigDecimal
to aDouble
. If thatDouble
is eitherDouble.POSITIVE_INFINITY
orDouble.NEGATIVE_INFINITY
, then this exception will be thrown. The internalBigDecimal
will be returned in theresult
field for consumption by the client.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.math.BigDecimal
result
-
Constructor Summary
Constructors Constructor Description BigResult(java.math.BigDecimal result, java.lang.String message)
-