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 String
Error message when iterative conversion fails.(package private) static final String
Error message for overflow during conversion.(package private) static final String
Error message for divide by zero.(package private) static final String
Error message for zero-valued denominator.private static final long
Serializable 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 java.lang.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 message when iterative conversion fails.- See Also:
-
ERROR_ZERO_DENOMINATOR
Error message for zero-valued denominator.- See Also:
-
ERROR_DIVIDE_BY_ZERO
Error message for divide by zero.- See Also:
-
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
-