Class InferenceException

All Implemented Interfaces:
Serializable

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

    • INVALID_PROBABILITY

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

      static final String TWO_CATEGORIES_REQUIRED
      Error message for "categories x < 2".
      See Also:
    • TWO_VALUES_REQUIRED

      static final String TWO_VALUES_REQUIRED
      Error message for "values x < 2".
      See Also:
    • CATEGORIES_REQUIRED

      static final String CATEGORIES_REQUIRED
      Error message for "categories x < y".
      See Also:
    • VALUES_REQUIRED

      static final String VALUES_REQUIRED
      Error message for "values x < y".
      See Also:
    • NOT_RECTANGULAR

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

      static final String VALUES_MISMATCH
      Error message for "mismatch" condition when "values x != y".
      See Also:
    • NEGATIVE

      static final String NEGATIVE
      Error message for "negative" condition when "x < 0".
      See Also:
    • ZERO

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

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

      static final String INVALID_SIGNIFICANCE
      Error message for "invalid significance" condition when "x not in (0, 0.5]".
      See Also:
    • NOT_STRICTLY_POSITIVE

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

      static final String NO_DATA
      Error message for "no data" condition.
      See Also:
    • X_GT_Y

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

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

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

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

    • InferenceException

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

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