Class DistributionException

All Implemented Interfaces:
Serializable

class DistributionException extends IllegalArgumentException
Package private exception class with constants for frequently used messages.
  • Field Details

    • TOO_LARGE

      static final String TOO_LARGE
      Error message for "too large" condition when "x > y".
      See Also:
    • TOO_SMALL

      static final String TOO_SMALL
      Error message for "too small" condition when "x invalid input: '<' y".
      See Also:
    • OUT_OF_RANGE

      static final String OUT_OF_RANGE
      Error message for "out of range" condition when "x not in [a, b]".
      See Also:
    • INVALID_RANGE_LOW_GTE_HIGH

      static final String INVALID_RANGE_LOW_GTE_HIGH
      Error message for "invalid range" condition when "lower >= upper".
      See Also:
    • INVALID_RANGE_LOW_GT_HIGH

      static final String INVALID_RANGE_LOW_GT_HIGH
      Error message for "invalid range" condition when "lower > upper".
      See Also:
    • INVALID_PROBABILITY

      static final String INVALID_PROBABILITY
      Error message for "invalid probability" condition when "x not in [0, 1]".
      See Also:
    • INVALID_NON_ZERO_PROBABILITY

      static final String INVALID_NON_ZERO_PROBABILITY
      Error message for "invalid non-zero probability" condition when "x not in (0, 1]".
      See Also:
    • NEGATIVE

      static final String NEGATIVE
      Error message for "negative" condition when "x invalid input: '<' 0".
      See Also:
    • NOT_STRICTLY_POSITIVE

      static final String NOT_STRICTLY_POSITIVE
      Error message for "not strictly positive" condition when "x invalid input: '<'= 0".
      See Also:
    • NOT_STRICTLY_POSITIVE_FINITE

      static final String NOT_STRICTLY_POSITIVE_FINITE
      Error message for "not strictly positive" condition when "x invalid input: '<'= 0".
      See Also:
    • serialVersionUID

      private static final long serialVersionUID
      Serializable version identifier.
      See Also:
  • Constructor Details

    • DistributionException

      DistributionException(String message, Object... formatArguments)
      Creates an exception.
      Parameters:
      message - Exception message with replaceable parameters.
      formatArguments - Arguments for formatting the message.