TooManyRedirectsException Class
- 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
- com.
- com.
- com.
- java.
- java.
- java.
public class TooManyRedirectsException
extends HttpResponseException
The TooManyRedirectsException
represents an exception thrown when an HTTP request has reached the maximum number of redirect attempts.
This exception is typically thrown when the service responds with a status code of 3XX, indicating multiple redirections, and the client has exhausted its limit of redirection attempts.
This class also provides methods to get the HttpResponse that was received when the exception occurred and the deserialized HTTP response value.
Constructor Summary
Constructor | Description |
---|---|
TooManyRedirectsException(String message, HttpResponse response) |
Initializes a new instance of the Too |
TooManyRedirectsException(String message, HttpResponse response, Object value) |
Initializes a new instance of the Too |
TooManyRedirectsException(String message, HttpResponse response, Throwable cause) |
Initializes a new instance of the Too |
Methods inherited from HttpResponseException
Methods inherited from java.lang.Object
Methods inherited from java.lang.Throwable
Constructor Details
TooManyRedirectsException
public TooManyRedirectsException(String message, HttpResponse response)
Initializes a new instance of the TooManyRedirectsException class.
Parameters:
TooManyRedirectsException
public TooManyRedirectsException(String message, HttpResponse response, Object value)
Initializes a new instance of the TooManyRedirectsException class.
Parameters:
TooManyRedirectsException
public TooManyRedirectsException(String message, HttpResponse response, Throwable cause)
Initializes a new instance of the TooManyRedirectsException class.
Parameters:
Applies to
Azure SDK for Java
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour