|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apfloat.ApfloatRuntimeException
org.apfloat.LossOfPrecisionException
public class LossOfPrecisionException
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.
Constructor Summary | |
---|---|
LossOfPrecisionException()
Constructs a new apfloat loss of precision exception with an empty detail message. |
|
LossOfPrecisionException(String message)
Constructs a new apfloat loss of precision exception with the specified detail message. |
|
LossOfPrecisionException(String message,
Throwable cause)
Constructs a new apfloat loss of precision exception with the specified detail message and cause. |
Method Summary |
---|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LossOfPrecisionException()
public LossOfPrecisionException(String message)
message
- The detail message.public LossOfPrecisionException(String message, Throwable cause)
message
- The detail message.cause
- Originating cause of the exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |