Package com.launchdarkly.sdk.android
Class LDInvalidResponseCodeFailure
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.launchdarkly.sdk.android.LaunchDarklyException
com.launchdarkly.sdk.android.LDFailure
com.launchdarkly.sdk.android.LDInvalidResponseCodeFailure
- All Implemented Interfaces:
Serializable
Container class representing a communication failure with LaunchDarkly servers in which the response was unexpected.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.launchdarkly.sdk.android.LDFailure
LDFailure.FailureType
-
Constructor Summary
ConstructorDescriptionLDInvalidResponseCodeFailure
(String message, int responseCode, boolean retryable) LDInvalidResponseCodeFailure
(String message, Throwable cause, int responseCode, boolean retryable) -
Method Summary
Methods inherited from class com.launchdarkly.sdk.android.LDFailure
getFailureType
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LDInvalidResponseCodeFailure
- Parameters:
message
- the messageresponseCode
- the response coderetryable
- whether or not retrying may resolve the issue
-
LDInvalidResponseCodeFailure
public LDInvalidResponseCodeFailure(String message, Throwable cause, int responseCode, boolean retryable) - Parameters:
message
- the messagecause
- the cause of the failureresponseCode
- the response coderetryable
- whether or not retrying may resolve the issue
-
-
Method Details
-
isRetryable
public boolean isRetryable()- Returns:
- true if retrying may resolve the issue
-
getResponseCode
public int getResponseCode()- Returns:
- the response code
-