Class OverflowException
- All Implemented Interfaces:
Serializable, ApfloatLocalizedException
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.15.0
- Author:
- Mikko Tommila
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs 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, String localizationKey, Object... localizationArgs) Constructs a new apfloat overflow exception with the specified detail message and localization data.OverflowException(String message, Throwable cause) Constructs a new apfloat overflow exception with the specified detail message and cause.OverflowException(String message, Throwable cause, String localizationKey, Object... localizationArgs) Constructs a new apfloat overflow exception with the specified detail message, cause and localization data. -
Method Summary
Methods inherited from class ApfloatRuntimeException
getLocalizationArgs, getLocalizationKey, getLocalizedMessageMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ApfloatLocalizedException
getMessage
-
Constructor Details
-
OverflowException
public OverflowException()Constructs a new apfloat overflow exception with an empty detail message. -
OverflowException
Constructs a new apfloat overflow exception with the specified detail message.- Parameters:
message- The detail message.
-
OverflowException
-
OverflowException
Constructs a new apfloat overflow exception with the specified detail message and localization data.- Parameters:
message- The detail message.localizationKey- The localization key.localizationArgs- The localization arguments.- Since:
- 1.15.0
-
OverflowException
public OverflowException(String message, Throwable cause, String localizationKey, Object... localizationArgs) Constructs a new apfloat overflow exception with the specified detail message, cause and localization data.- Parameters:
message- The detail message.cause- Originating cause of the exception.localizationKey- The localization key.localizationArgs- The localization arguments.- Since:
- 1.15.0
-