Class FractionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.ArithmeticException
org.apache.commons.numbers.fraction.FractionException
- All Implemented Interfaces:
Serializable
Package private exception class with constants for frequently used messages.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final StringError message when iterative conversion fails.(package private) static final StringError message for overflow during conversion.(package private) static final StringError message for divide by zero.(package private) static final StringError message for zero-valued denominator.private static final longSerializable version identifier. -
Constructor Summary
ConstructorsConstructorDescriptionFractionException(String message) Create an exception with the specified message.FractionException(String message, Object... formatArguments) Create an exception where the message is constructed by applyingString.format(String, Object...). -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ERROR_CONVERSION_OVERFLOW
Error message for overflow during conversion.- See Also:
-
ERROR_CONVERSION
-
ERROR_ZERO_DENOMINATOR
-
ERROR_DIVIDE_BY_ZERO
-
serialVersionUID
private static final long serialVersionUIDSerializable version identifier.- See Also:
-
-
Constructor Details
-
FractionException
Create an exception where the message is constructed by applyingString.format(String, Object...).- Parameters:
message- the exception message format stringformatArguments- the arguments for formatting the message
-
FractionException
FractionException(String message) Create an exception with the specified message.- Parameters:
message- the exception message
-