Package org.apfloat
Class LossOfPrecisionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apfloat.ApfloatRuntimeException
-
- org.apfloat.NumericComputationException
-
- org.apfloat.LossOfPrecisionException
-
- All Implemented Interfaces:
java.io.Serializable
public class LossOfPrecisionException extends NumericComputationException
Exception indicating a result that would have no significant digits.An example would be
ApfloatMath.sin(new Apfloat(1e100))
. Rather than returning an arbitrary result, this exception should be thrown.Note that a subtraction where a complete loss of digits occurs does not throw this exception but instead just returns zero.
- Since:
- 1.5
- Version:
- 1.14.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description LossOfPrecisionException()
Constructs a new apfloat loss of precision exception with an empty detail message.LossOfPrecisionException(java.lang.String message)
Constructs a new apfloat loss of precision exception with the specified detail message.LossOfPrecisionException(java.lang.String message, java.lang.Throwable cause)
Constructs a new apfloat loss of precision exception with the specified detail message and cause.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LossOfPrecisionException
public LossOfPrecisionException()
Constructs a new apfloat loss of precision exception with an empty detail message.
-
LossOfPrecisionException
public LossOfPrecisionException(java.lang.String message)
Constructs a new apfloat loss of precision exception with the specified detail message.- Parameters:
message
- The detail message.
-
LossOfPrecisionException
public LossOfPrecisionException(java.lang.String message, java.lang.Throwable cause)
Constructs a new apfloat loss of precision exception with the specified detail message and cause.- Parameters:
message
- The detail message.cause
- Originating cause of the exception.
-
-