Class 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 when x < 0.
      (package private) static java.lang.String NOT_STRICTLY_POSITIVE
      Error message for "not strictly positive" condition when x <= 0.
      (package private) static java.lang.String NOT_STRICTLY_POSITIVE_FINITE
      Error message for "not strictly positive finite" condition when x <= 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 when x > y.
      (package private) static java.lang.String TOO_SMALL
      Error message for "too small" condition when x < y.
    • Constructor Summary

      Constructors 
      Constructor Description
      DistributionException​(java.lang.String message, java.lang.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • TOO_LARGE

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

        static final java.lang.String TOO_SMALL
        Error message for "too small" condition when x < 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 when x < 0.
        See Also:
        Constant Field Values
      • NOT_STRICTLY_POSITIVE

        static final java.lang.String NOT_STRICTLY_POSITIVE
        Error message for "not strictly positive" condition when x <= 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 when x <= 0 || x == inf.
        See Also:
        Constant Field Values
      • serialVersionUID

        private static final long serialVersionUID
        Serializable version identifier.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DistributionException

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