Package com.launchdarkly.sdk.android
Class LDFailure
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.launchdarkly.sdk.android.LaunchDarklyException
com.launchdarkly.sdk.android.LDFailure
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LDInvalidResponseCodeFailure
Container class representing a communication failure with LaunchDarkly servers.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enumerated type defining the possible values ofgetFailureType()
. -
Constructor Summary
ConstructorDescriptionLDFailure
(String message, LDFailure.FailureType failureType) LDFailure
(String message, Throwable cause, LDFailure.FailureType failureType) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LDFailure
- Parameters:
message
- the messagefailureType
- the failure type
-
LDFailure
- Parameters:
message
- the messagecause
- the cause of the failurefailureType
- the failure type
-
-
Method Details
-
getFailureType
- Returns:
- the failure type
-