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.ExceptionChecked exception which is thrown from unit methods which can possibly overflow. Use ofBigDecimalin theConversionprevents 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 theBigDecimalto aDouble. If thatDoubleis eitherDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITY, then this exception will be thrown. The internalBigDecimalwill be returned in theresultfield for consumption by the client.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.math.BigDecimalresult
-
Constructor Summary
Constructors Constructor Description BigResult(java.math.BigDecimal result, java.lang.String message)
-