Class 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 of BigDecimal in the Conversion 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 the BigDecimal to a Double. If that Double is either Double.POSITIVE_INFINITY or Double.NEGATIVE_INFINITY, then this exception will be thrown. The internal BigDecimal will be returned in the result 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)  
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • result

        public final java.math.BigDecimal result
    • Constructor Detail

      • BigResult

        public BigResult​(java.math.BigDecimal result,
                         java.lang.String message)