public class HttpRequestException extends AzureException
Generally, these errors are safe to retry.
Constructor and Description |
---|
HttpRequestException(HttpRequest request)
Initializes a new instance of the HttpRequestException class.
|
HttpRequestException(HttpRequest request,
Throwable cause)
Initializes a new instance of the HttpRequestException class.
|
HttpRequestException(String message,
HttpRequest request)
Initializes a new instance of the HttpRequestException class.
|
HttpRequestException(String message,
HttpRequest request,
Throwable cause)
Initializes a new instance of the HttpRequestException class.
|
HttpRequestException(String message,
HttpRequest request,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Initializes a new instance of the HttpRequestException class.
|
Modifier and Type | Method and Description |
---|---|
HttpRequest |
getRequest() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public HttpRequestException(HttpRequest request)
request
- The HttpRequest
being sent when the exception occurred.public HttpRequestException(String message, HttpRequest request)
message
- The exception message.request
- the HTTP request sends to the Azure servicepublic HttpRequestException(HttpRequest request, Throwable cause)
request
- The HttpRequest
being sent when the exception occurred.cause
- The Throwable
which caused the creation of this HttpRequestException.public HttpRequestException(String message, HttpRequest request, Throwable cause)
message
- The exception message.request
- The HttpRequest
being sent when the exception occurred.cause
- The Throwable
which caused the creation of this HttpRequestException.public HttpRequestException(String message, HttpRequest request, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
message
- The exception message.request
- The HttpRequest
being sent when the exception occurred.cause
- The Throwable
which caused the creation of this HttpRequestException.enableSuppression
- Whether suppression is enabled or disabled.writableStackTrace
- Whether the exception stack trace will be filled in.public HttpRequest getRequest()
HttpRequest
being sent when the exception occurred.Copyright © 2021 Microsoft Corporation. All rights reserved.