Package com.launchdarkly.sdk
Enum EvaluationReason.ErrorKind
- java.lang.Object
-
- java.lang.Enum<EvaluationReason.ErrorKind>
-
- com.launchdarkly.sdk.EvaluationReason.ErrorKind
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EvaluationReason.ErrorKind>
- Enclosing class:
- EvaluationReason
public static enum EvaluationReason.ErrorKind extends java.lang.Enum<EvaluationReason.ErrorKind>
Enumerated type defining the possible values ofEvaluationReason.getErrorKind()
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLIENT_NOT_READY
Indicates that the caller tried to evaluate a flag before the client had successfully initialized.EXCEPTION
Indicates that an unexpected exception stopped flag evaluation.FLAG_NOT_FOUND
Indicates that the caller provided a flag key that did not match any known flag.MALFORMED_FLAG
Indicates that there was an internal inconsistency in the flag data, e.g.USER_NOT_SPECIFIED
Indicates that the caller passednull
for the user parameter, or the user lacked a key.WRONG_TYPE
Indicates that the result value was not of the requested type, e.g.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EvaluationReason.ErrorKind
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EvaluationReason.ErrorKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLIENT_NOT_READY
public static final EvaluationReason.ErrorKind CLIENT_NOT_READY
Indicates that the caller tried to evaluate a flag before the client had successfully initialized.
-
FLAG_NOT_FOUND
public static final EvaluationReason.ErrorKind FLAG_NOT_FOUND
Indicates that the caller provided a flag key that did not match any known flag.
-
MALFORMED_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.
-
USER_NOT_SPECIFIED
public static final EvaluationReason.ErrorKind USER_NOT_SPECIFIED
Indicates that the caller passednull
for the user parameter, or the user lacked a key.
-
WRONG_TYPE
public static final EvaluationReason.ErrorKind WRONG_TYPE
Indicates that the result value was not of the requested type, e.g. you calledboolVariationDetail
but the value was an integer.
-
EXCEPTION
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 viaEvaluationReason.getException()
.
-
-
Method Detail
-
values
public static EvaluationReason.ErrorKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EvaluationReason.ErrorKind c : EvaluationReason.ErrorKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EvaluationReason.ErrorKind valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-