Class LDInvalidResponseCodeFailure

All Implemented Interfaces:
Serializable

public class LDInvalidResponseCodeFailure extends LDFailure
Container class representing a communication failure with LaunchDarkly servers in which the response was unexpected.
See Also:
  • Constructor Details

    • LDInvalidResponseCodeFailure

      public LDInvalidResponseCodeFailure(String message, int responseCode, boolean retryable)
      Parameters:
      message - the message
      responseCode - the response code
      retryable - whether or not retrying may resolve the issue
    • LDInvalidResponseCodeFailure

      public LDInvalidResponseCodeFailure(String message, Throwable cause, int responseCode, boolean retryable)
      Parameters:
      message - the message
      cause - the cause of the failure
      responseCode - the response code
      retryable - 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