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:
java.io.Serializable
class DistributionException extends java.lang.IllegalArgumentException
Package private exception class with constants for frequently used messages.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.String
INVALID_NON_ZERO_PROBABILITY
Error message for "invalid non-zero probability" condition when "x not in (0, 1]".(package private) static java.lang.String
INVALID_PROBABILITY
Error message for "invalid probability" condition when "x not in [0, 1]".(package private) static java.lang.String
INVALID_RANGE_LOW_GT_HIGH
Error message for "invalid range" condition when "lower > upper".(package private) static java.lang.String
INVALID_RANGE_LOW_GTE_HIGH
Error message for "invalid range" condition when "lower >= upper".(package private) static java.lang.String
NEGATIVE
Error message for "negative" condition whenx < 0
.(package private) static java.lang.String
NOT_STRICTLY_POSITIVE
Error message for "not strictly positive" condition whenx <= 0
.(package private) static java.lang.String
NOT_STRICTLY_POSITIVE_FINITE
Error message for "not strictly positive finite" condition whenx <= 0 || x == inf
.(package private) static java.lang.String
OUT_OF_RANGE
Error message for "out of range" condition when "x not in [a, b]".private static long
serialVersionUID
Serializable version identifier.(package private) static java.lang.String
TOO_LARGE
Error message for "too large" condition whenx > y
.(package private) static java.lang.String
TOO_SMALL
Error message for "too small" condition whenx < y
.
-
Constructor Summary
Constructors Constructor Description DistributionException(java.lang.String message, java.lang.Object... formatArguments)
Creates an exception.
-
-
-
Field Detail
-
TOO_LARGE
static final java.lang.String TOO_LARGE
Error message for "too large" condition whenx > y
.- See Also:
- Constant Field Values
-
TOO_SMALL
static final java.lang.String TOO_SMALL
Error message for "too small" condition whenx < y
.- See Also:
- Constant Field Values
-
OUT_OF_RANGE
static final java.lang.String OUT_OF_RANGE
Error message for "out of range" condition when "x not in [a, b]".- See Also:
- Constant Field Values
-
INVALID_RANGE_LOW_GTE_HIGH
static final java.lang.String INVALID_RANGE_LOW_GTE_HIGH
Error message for "invalid range" condition when "lower >= upper".- See Also:
- Constant Field Values
-
INVALID_RANGE_LOW_GT_HIGH
static final java.lang.String INVALID_RANGE_LOW_GT_HIGH
Error message for "invalid range" condition when "lower > upper".- See Also:
- Constant Field Values
-
INVALID_PROBABILITY
static final java.lang.String INVALID_PROBABILITY
Error message for "invalid probability" condition when "x not in [0, 1]".- See Also:
- Constant Field Values
-
INVALID_NON_ZERO_PROBABILITY
static final java.lang.String INVALID_NON_ZERO_PROBABILITY
Error message for "invalid non-zero probability" condition when "x not in (0, 1]".- See Also:
- Constant Field Values
-
NEGATIVE
static final java.lang.String NEGATIVE
Error message for "negative" condition whenx < 0
.- See Also:
- Constant Field Values
-
NOT_STRICTLY_POSITIVE
static final java.lang.String NOT_STRICTLY_POSITIVE
Error message for "not strictly positive" condition whenx <= 0
.- See Also:
- Constant Field Values
-
NOT_STRICTLY_POSITIVE_FINITE
static final java.lang.String NOT_STRICTLY_POSITIVE_FINITE
Error message for "not strictly positive finite" condition whenx <= 0 || x == inf
.- See Also:
- Constant Field Values
-
serialVersionUID
private static final long serialVersionUID
Serializable version identifier.- See Also:
- Constant Field Values
-
-