Enum Class EvaluationReason.ErrorKind

All Implemented Interfaces:
Serializable, Comparable<EvaluationReason.ErrorKind>, Constable
Enclosing class:

public static enum EvaluationReason.ErrorKind extends Enum<EvaluationReason.ErrorKind>
Enumerated type defining the possible values of EvaluationReason.getErrorKind().
  • Enum Constant Details


      public static final EvaluationReason.ErrorKind CLIENT_NOT_READY
      Indicates that the caller tried to evaluate a flag before the client had successfully initialized.

      public static final EvaluationReason.ErrorKind FLAG_NOT_FOUND
      Indicates that the caller provided a flag key that did not match any known flag.

      public static final EvaluationReason.ErrorKind MALFORMED_FLAG
      Indicates that there was an internal inconsistency in the flag data, e.g. a rule specified a nonexistent variation. An error message will always be logged in this case.

      public static final EvaluationReason.ErrorKind USER_NOT_SPECIFIED
      Indicates that the caller passed null for the user parameter, or the user lacked a key.

      public static final EvaluationReason.ErrorKind WRONG_TYPE
      Indicates that the result value was not of the requested type, e.g. you called boolVariationDetail but the value was an integer.

      public static final EvaluationReason.ErrorKind EXCEPTION
      Indicates that an unexpected exception stopped flag evaluation. An error message will always be logged in this case, and the exception should be available via EvaluationReason.getException().
  • Method Details

    • values

      public static EvaluationReason.ErrorKind[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EvaluationReason.ErrorKind valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null