Enum Class LDFailure.FailureType

java.lang.Object
java.lang.Enum<LDFailure.FailureType>
com.launchdarkly.sdk.android.LDFailure.FailureType
All Implemented Interfaces:
Serializable, Comparable<LDFailure.FailureType>, Constable
Enclosing class:
LDFailure

public static enum LDFailure.FailureType extends Enum<LDFailure.FailureType>
Enumerated type defining the possible values of LDFailure.getFailureType().
  • Enum Constant Details

    • INVALID_RESPONSE_BODY

      public static final LDFailure.FailureType INVALID_RESPONSE_BODY
      A response body received either through polling or streaming was unable to be parsed.
    • NETWORK_FAILURE

      public static final LDFailure.FailureType NETWORK_FAILURE
      A network request for polling, or the EventSource stream reported a failure.
    • UNEXPECTED_STREAM_ELEMENT_TYPE

      public static final LDFailure.FailureType 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

      public static final LDFailure.FailureType UNEXPECTED_RESPONSE_CODE
      This indicates the LDFailure is an instance of LDInvalidResponseCodeFailure.
    • UNKNOWN_ERROR

      public static final LDFailure.FailureType UNKNOWN_ERROR
      Some other issue occurred.
  • Method Details

    • values

      public static LDFailure.FailureType[] 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

      public static LDFailure.FailureType 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.)
      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 name
      NullPointerException - if the argument is null