Package org.apfloat
Class OverflowException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apfloat.ApfloatRuntimeException
-
- org.apfloat.NumericComputationException
-
- org.apfloat.OverflowException
-
- All Implemented Interfaces:
java.io.Serializable
public class OverflowException extends NumericComputationException
Exception indicating an overflow in a calculation.For example
ApfloatMath.exp(new Apfloat(1e100))
.If the exponent is too large to fit in a
long
, the situation can't be handled. Note that there is no "infinity" apfloat value that could be returned as the result.- 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 OverflowException()
Constructs a new apfloat overflow exception with an empty detail message.OverflowException(java.lang.String message)
Constructs a new apfloat overflow exception with the specified detail message.OverflowException(java.lang.String message, java.lang.Throwable cause)
Constructs a new apfloat overflow exception with the specified detail message and cause.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OverflowException
public OverflowException()
Constructs a new apfloat overflow exception with an empty detail message.
-
OverflowException
public OverflowException(java.lang.String message)
Constructs a new apfloat overflow exception with the specified detail message.- Parameters:
message
- The detail message.
-
OverflowException
public OverflowException(java.lang.String message, java.lang.Throwable cause)
Constructs a new apfloat overflow exception with the specified detail message and cause.- Parameters:
message
- The detail message.cause
- Originating cause of the exception.
-
-