Class TooManyRedirectsException

  • All Implemented Interfaces:
    java.io.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:
    HttpResponseException, Serialized Form
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TooManyRedirectsException

        public TooManyRedirectsException​(java.lang.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​(java.lang.String message,
                                         HttpResponse response,
                                         java.lang.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​(java.lang.String message,
                                         HttpResponse response,
                                         java.lang.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