Package com.launchdarkly.sdk.android
Enum Class LDFailure.FailureType
- All Implemented Interfaces:
Serializable
,Comparable<LDFailure.FailureType>
,Constable
- Enclosing class:
- LDFailure
Enumerated type defining the possible values of
LDFailure.getFailureType()
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA response body received either through polling or streaming was unable to be parsed.A network request for polling, or the EventSource stream reported a failure.This indicates the LDFailure is an instance of LDInvalidResponseCodeFailure.An event was received through the stream with an unknown event key.Some other issue occurred. -
Method Summary
Modifier and TypeMethodDescriptionstatic LDFailure.FailureType
Returns the enum constant of this class with the specified name.static LDFailure.FailureType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALID_RESPONSE_BODY
A response body received either through polling or streaming was unable to be parsed. -
NETWORK_FAILURE
A network request for polling, or the EventSource stream reported a failure. -
UNEXPECTED_STREAM_ELEMENT_TYPE
An event was received through the stream with an unknown event key. This could indicate a newer SDK is available if new event kinds have become available through the flag stream since the SDK's release. -
UNEXPECTED_RESPONSE_CODE
This indicates the LDFailure is an instance of LDInvalidResponseCodeFailure. -
UNKNOWN_ERROR
Some other issue occurred.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
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.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-