Class ApfloatArithmeticException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.ArithmeticException
org.apfloat.ApfloatArithmeticException
- All Implemented Interfaces:
Serializable, ApfloatLocalizedException
public class ApfloatArithmeticException
extends ArithmeticException
implements ApfloatLocalizedException
Exception indicating a mathematical condition.
For example if the result would be infinite or undefined, this exception is thrown.
- Since:
- 1.15.0
- Version:
- 1.15.0
- Author:
- Mikko Tommila
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new apfloat arithmetic exception with an empty detail message.ApfloatArithmeticException(String message) Constructs a new apfloat arithmetic exception with the specified detail message.ApfloatArithmeticException(String message, String localizationKey, Object... localizationArgs) Constructs a new apfloat arithmetic exception with the specified detail message and localization data. -
Method Summary
Modifier and TypeMethodDescriptionObject[]Returns the localization arguments.Returns the localization key.Returns the localized detail message.Methods 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
-
ApfloatArithmeticException
public ApfloatArithmeticException()Constructs a new apfloat arithmetic exception with an empty detail message. -
ApfloatArithmeticException
Constructs a new apfloat arithmetic exception with the specified detail message.- Parameters:
message- The detail message.
-
ApfloatArithmeticException
public ApfloatArithmeticException(String message, String localizationKey, Object... localizationArgs) Constructs a new apfloat arithmetic exception with the specified detail message and localization data.- Parameters:
message- The detail message.localizationKey- The localization key.localizationArgs- The localization arguments.
-
-
Method Details
-
getLocalizedMessage
Description copied from interface:ApfloatLocalizedExceptionReturns the localized detail message.- Specified by:
getLocalizedMessagein interfaceApfloatLocalizedException- Overrides:
getLocalizedMessagein classThrowable- Returns:
- The localized detail message.
-
getLocalizationKey
Returns the localization key.- Specified by:
getLocalizationKeyin interfaceApfloatLocalizedException- Returns:
- The localization key.
-
getLocalizationArgs
Returns the localization arguments.- Specified by:
getLocalizationArgsin interfaceApfloatLocalizedException- Returns:
- The localization arguments.
-