Class InferenceException

  • All Implemented Interfaces:
    java.io.Serializable

    class InferenceException
    extends java.lang.IllegalArgumentException
    Package private exception class with constants for frequently used messages.
    Since:
    1.1
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static java.lang.String CATEGORIES_REQUIRED
      Error message for "categories x < y".
      (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_SIGNIFICANCE
      Error message for "invalid significance" condition when "x not in (0, 0.5]".
      (package private) static java.lang.String NEGATIVE
      Error message for "negative" condition when "x < 0".
      (package private) static java.lang.String NO_DATA
      Error message for "no data" condition.
      (package private) static java.lang.String NOT_RECTANGULAR
      Error message for "non-rectangular matrix" when "some row lengths x != others y".
      (package private) static java.lang.String NOT_STRICTLY_POSITIVE
      Error message for "not strictly positive" condition when "x <= 0".
      private static long serialVersionUID
      Serializable version identifier.
      (package private) static java.lang.String TWO_CATEGORIES_REQUIRED
      Error message for "categories x < 2".
      (package private) static java.lang.String TWO_VALUES_REQUIRED
      Error message for "values x < 2".
      (package private) static java.lang.String VALUES_MISMATCH
      Error message for "mismatch" condition when "values x != y".
      (package private) static java.lang.String VALUES_REQUIRED
      Error message for "values x < y".
      (package private) static java.lang.String X_GT_Y
      Error message for "too large" condition when "x > y".
      (package private) static java.lang.String X_GTE_Y
      Error message for "too large" condition when "x >= y".
      (package private) static java.lang.String X_LT_Y
      Error message for "too small" condition when "x < y".
      (package private) static java.lang.String ZERO
      Error message for "zero" condition when "x == 0".
      (package private) static java.lang.String ZERO_AT
      Error message for "zero" condition when "x[i] == 0".
    • Constructor Summary

      Constructors 
      Constructor Description
      InferenceException​(java.lang.String message)
      Creates an exception.
      InferenceException​(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

      • 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
      • TWO_CATEGORIES_REQUIRED

        static final java.lang.String TWO_CATEGORIES_REQUIRED
        Error message for "categories x < 2".
        See Also:
        Constant Field Values
      • TWO_VALUES_REQUIRED

        static final java.lang.String TWO_VALUES_REQUIRED
        Error message for "values x < 2".
        See Also:
        Constant Field Values
      • CATEGORIES_REQUIRED

        static final java.lang.String CATEGORIES_REQUIRED
        Error message for "categories x < y".
        See Also:
        Constant Field Values
      • VALUES_REQUIRED

        static final java.lang.String VALUES_REQUIRED
        Error message for "values x < y".
        See Also:
        Constant Field Values
      • NOT_RECTANGULAR

        static final java.lang.String NOT_RECTANGULAR
        Error message for "non-rectangular matrix" when "some row lengths x != others y".
        See Also:
        Constant Field Values
      • VALUES_MISMATCH

        static final java.lang.String VALUES_MISMATCH
        Error message for "mismatch" condition when "values x != y".
        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
      • ZERO

        static final java.lang.String ZERO
        Error message for "zero" condition when "x == 0".
        See Also:
        Constant Field Values
      • ZERO_AT

        static final java.lang.String ZERO_AT
        Error message for "zero" condition when "x[i] == 0".
        See Also:
        Constant Field Values
      • INVALID_SIGNIFICANCE

        static final java.lang.String INVALID_SIGNIFICANCE
        Error message for "invalid significance" condition when "x not in (0, 0.5]".
        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
      • NO_DATA

        static final java.lang.String NO_DATA
        Error message for "no data" condition.
        See Also:
        Constant Field Values
      • X_GT_Y

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

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

        static final java.lang.String X_LT_Y
        Error message for "too small" condition when "x < y".
        See Also:
        Constant Field Values
      • serialVersionUID

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

      • InferenceException

        InferenceException​(java.lang.String message)
        Creates an exception.
        Parameters:
        message - Exception message.
      • InferenceException

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