Package com.launchdarkly.sdk.android
Enum LDFailure.FailureType
- java.lang.Object
-
- java.lang.Enum<LDFailure.FailureType>
-
- com.launchdarkly.sdk.android.LDFailure.FailureType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LDFailure.FailureType>
- Enclosing class:
- LDFailure
public static enum LDFailure.FailureType extends java.lang.Enum<LDFailure.FailureType>
Enumerated type defining the possible values ofLDFailure.getFailureType()
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_RESPONSE_BODY
NETWORK_FAILURE
UNEXPECTED_RESPONSE_CODE
UNEXPECTED_STREAM_ELEMENT_TYPE
UNKNOWN_ERROR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LDFailure.FailureType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LDFailure.FailureType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INVALID_RESPONSE_BODY
public static final LDFailure.FailureType INVALID_RESPONSE_BODY
-
NETWORK_FAILURE
public static final LDFailure.FailureType NETWORK_FAILURE
-
UNEXPECTED_STREAM_ELEMENT_TYPE
public static final LDFailure.FailureType UNEXPECTED_STREAM_ELEMENT_TYPE
-
UNEXPECTED_RESPONSE_CODE
public static final LDFailure.FailureType UNEXPECTED_RESPONSE_CODE
-
UNKNOWN_ERROR
public static final LDFailure.FailureType UNKNOWN_ERROR
-
-
Method Detail
-
values
public static LDFailure.FailureType[] 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 (LDFailure.FailureType c : LDFailure.FailureType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LDFailure.FailureType 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
-
-