Package com.azure.core.exception
Class TooManyRedirectsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.azure.core.exception.AzureException
com.azure.core.exception.HttpResponseException
com.azure.core.exception.TooManyRedirectsException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorDescriptionTooManyRedirectsException
(String message, HttpResponse response) Initializes a new instance of the TooManyRedirectsException class.TooManyRedirectsException
(String message, HttpResponse response, Object value) Initializes a new instance of the TooManyRedirectsException class.TooManyRedirectsException
(String message, HttpResponse response, Throwable cause) Initializes a new instance of the TooManyRedirectsException class. -
Method Summary
Methods inherited from class com.azure.core.exception.HttpResponseException
getResponse, getValue
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TooManyRedirectsException
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
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
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
-