Class TooManyRedirectsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.azure.android.core.exception.AzureException
-
- com.azure.android.core.http.exception.HttpResponseException
-
- com.azure.android.core.http.exception.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
-
-
Constructor Summary
Constructors Constructor Description TooManyRedirectsException(java.lang.String message, HttpResponse response)
Initializes a new instance of the TooManyRedirectsException class.TooManyRedirectsException(java.lang.String message, HttpResponse response, java.lang.Object value)
Initializes a new instance of the TooManyRedirectsException class.TooManyRedirectsException(java.lang.String message, HttpResponse response, java.lang.Throwable cause)
Initializes a new instance of the TooManyRedirectsException class.
-
Method Summary
-
Methods inherited from class com.azure.android.core.http.exception.HttpResponseException
getResponse, getValue
-
-
-
-
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 availableresponse
- 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 availableresponse
- the HTTP responsevalue
- 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 availableresponse
- the HTTP responsecause
- the Throwable which caused the creation of this TooManyRedirectsException
-
-