HttpRequestException Class
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - java.
lang. RuntimeException - com.
azure. core. exception. AzureException - com.
azure. core. exception. HttpRequestException
- com.
- com.
- java.
- java.
- java.
public class HttpRequestException
extends AzureException
The HttpRequestException
that represents an exception thrown when an HTTP request fails.
This exception is typically thrown when the client sends an HTTP request to the Azure service, but the service is unable to process the request.
Constructor Summary
Constructor | Description |
---|---|
HttpRequestException(HttpRequest request) |
Initializes a new instance of the Http |
HttpRequestException(HttpRequest request, Throwable cause) |
Initializes a new instance of the Http |
HttpRequestException(String message, HttpRequest request) |
Initializes a new instance of the Http |
HttpRequestException(String message, HttpRequest request, Throwable cause) |
Initializes a new instance of the Http |
HttpRequestException(String message, HttpRequest request, Throwable cause, boolean enableSuppression, boolean writableStackTrace) |
Initializes a new instance of the Http |
Method Summary
Modifier and Type | Method and Description |
---|---|
Http |
getRequest()
Gets the HttpRequest being sent when the exception occurred. |
Methods inherited from java.lang.Object
Methods inherited from java.lang.Throwable
Constructor Details
HttpRequestException
public HttpRequestException(HttpRequest request)
Initializes a new instance of the HttpRequestException class.
Parameters:
HttpRequestException
public HttpRequestException(HttpRequest request, Throwable cause)
Initializes a new instance of the HttpRequestException class.
Parameters:
HttpRequestException
public HttpRequestException(String message, HttpRequest request)
Initializes a new instance of the HttpRequestException class.
Parameters:
HttpRequestException
public HttpRequestException(String message, HttpRequest request, Throwable cause)
Initializes a new instance of the HttpRequestException class.
Parameters:
HttpRequestException
public HttpRequestException(String message, HttpRequest request, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
Initializes a new instance of the HttpRequestException class.
Parameters:
Method Details
getRequest
public HttpRequest getRequest()
Gets the HttpRequest being sent when the exception occurred.
Returns:
Applies to
Azure SDK for Java