Package org.apfloat
Class ApfloatRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apfloat.ApfloatRuntimeException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ApfloatConfigurationException
,ApfloatInternalException
,ApfloatInterruptedException
,NumericComputationException
public class ApfloatRuntimeException extends java.lang.RuntimeException
Exception indicating some unexpected error situation. This exception can be thrown in different situations, for example:- The result of an operation would have infinite size. For example,
new Apfloat(2).divide(new Apfloat(3))
, in radix 10. - Overflow. If the exponent is too large to fit in a
long
, the situation can't be handled. Also, there is no "infinity" apfloat value that could be returned as the result. - Total loss of precision. For example,
ApfloatMath.sin(new Apfloat(1e100))
. If the magnitude (100) is far greater than the precision (1) then the value of thesin()
function can't be determined to any accuracy. - Some other internal limitation.
- Version:
- 1.1
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description ApfloatRuntimeException()
Constructs a new apfloat runtime exception with an empty detail message.ApfloatRuntimeException(java.lang.String message)
Constructs a new apfloat runtime exception with the specified detail message.ApfloatRuntimeException(java.lang.String message, java.lang.Throwable cause)
Constructs a new apfloat runtime exception with the specified detail message and cause.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ApfloatRuntimeException
public ApfloatRuntimeException()
Constructs a new apfloat runtime exception with an empty detail message.
-
ApfloatRuntimeException
public ApfloatRuntimeException(java.lang.String message)
Constructs a new apfloat runtime exception with the specified detail message.- Parameters:
message
- The detail message.
-
ApfloatRuntimeException
public ApfloatRuntimeException(java.lang.String message, java.lang.Throwable cause)
Constructs a new apfloat runtime exception with the specified detail message and cause.- Parameters:
message
- The detail message.cause
- Originating cause of the exception.
-
-