Class DistributionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.apache.commons.statistics.distribution.DistributionException
- 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 for "invalid non-zero probability" condition when "x not in (0, 1]".(package private) static final String
Error message for "invalid probability" condition when "x not in [0, 1]".(package private) static final String
Error message for "invalid range" condition when "lower > upper".(package private) static final String
Error message for "invalid range" condition when "lower >= upper".(package private) static final String
Error message for "negative" condition when "x invalid input: '<' 0".(package private) static final String
Error message for "not strictly positive" condition when "x invalid input: '<'= 0".(package private) static final String
Error message for "not strictly positive" condition when "x invalid input: '<'= 0".(package private) static final String
Error message for "out of range" condition when "x not in [a, b]".private static final long
Serializable version identifier.(package private) static final String
Error message for "too large" condition when "x > y".(package private) static final String
Error message for "too small" condition when "x invalid input: '<' y". -
Constructor Summary
ConstructorsConstructorDescriptionDistributionException
(String message, Object... formatArguments) Creates an exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
TOO_LARGE
Error message for "too large" condition when "x > y".- See Also:
-
TOO_SMALL
Error message for "too small" condition when "x invalid input: '<' y".- See Also:
-
OUT_OF_RANGE
Error message for "out of range" condition when "x not in [a, b]".- See Also:
-
INVALID_RANGE_LOW_GTE_HIGH
Error message for "invalid range" condition when "lower >= upper".- See Also:
-
INVALID_RANGE_LOW_GT_HIGH
Error message for "invalid range" condition when "lower > upper".- See Also:
-
INVALID_PROBABILITY
Error message for "invalid probability" condition when "x not in [0, 1]".- See Also:
-
INVALID_NON_ZERO_PROBABILITY
Error message for "invalid non-zero probability" condition when "x not in (0, 1]".- See Also:
-
NEGATIVE
Error message for "negative" condition when "x invalid input: '<' 0".- See Also:
-
NOT_STRICTLY_POSITIVE
Error message for "not strictly positive" condition when "x invalid input: '<'= 0".- See Also:
-
NOT_STRICTLY_POSITIVE_FINITE
Error message for "not strictly positive" condition when "x invalid input: '<'= 0".- See Also:
-
serialVersionUID
private static final long serialVersionUIDSerializable version identifier.- See Also:
-
-
Constructor Details
-
DistributionException
Creates an exception.- Parameters:
message
- Exception message with replaceable parameters.formatArguments
- Arguments for formatting the message.
-