Package org.apfloat
Class OverflowException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apfloat.ApfloatRuntimeException
-
- org.apfloat.OverflowException
-
- All Implemented Interfaces:
Serializable
public class OverflowException extends ApfloatRuntimeException
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.5
- Author:
- Mikko Tommila
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OverflowException()
Constructs a new apfloat overflow exception with an empty detail message.OverflowException(String message)
Constructs a new apfloat overflow exception with the specified detail message.OverflowException(String message, Throwable cause)
Constructs a new apfloat overflow exception with the specified detail message and cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
OverflowException
public OverflowException()
Constructs a new apfloat overflow exception with an empty detail message.
-
OverflowException
public OverflowException(String message)
Constructs a new apfloat overflow exception with the specified detail message.- Parameters:
message
- The detail message.
-
-