Class TooManyRedirectsException

All Implemented Interfaces:
Serializable

public class TooManyRedirectsException extends HttpResponseException
This exception is thrown when an HTTP request has reached the maximum number of redirect attempts with HTTP status code of 3XX.
See Also:
  • Constructor Details

    • TooManyRedirectsException

      public TooManyRedirectsException(String message, HttpResponse response)
      Initializes a new instance of the TooManyRedirectsException class.
      Parameters:
      message - the exception message or the response content if a message is not available
      response - the HTTP response
    • TooManyRedirectsException

      public TooManyRedirectsException(String message, HttpResponse response, Object value)
      Initializes a new instance of the TooManyRedirectsException class.
      Parameters:
      message - the exception message or the response content if a message is not available
      response - the HTTP response
      value - the deserialized response value
    • TooManyRedirectsException

      public TooManyRedirectsException(String message, HttpResponse response, Throwable cause)
      Initializes a new instance of the TooManyRedirectsException class.
      Parameters:
      message - the exception message or the response content if a message is not available
      response - the HTTP response
      cause - the Throwable which caused the creation of this TooManyRedirectsException