Class HttpRequestException

All Implemented Interfaces:
Serializable

public class HttpRequestException extends AzureException
The exception when an HTTP request fails.

Generally, these errors are safe to retry.

See Also:
  • Constructor Details

    • HttpRequestException

      public HttpRequestException(HttpRequest request)
      Initializes a new instance of the HttpRequestException class.
      Parameters:
      request - The HttpRequest being sent when the exception occurred.
    • HttpRequestException

      public HttpRequestException(String message, HttpRequest request)
      Initializes a new instance of the HttpRequestException class.
      Parameters:
      message - The exception message.
      request - the HTTP request sends to the Azure service
    • HttpRequestException

      public HttpRequestException(HttpRequest request, Throwable cause)
      Initializes a new instance of the HttpRequestException class.
      Parameters:
      request - The HttpRequest being sent when the exception occurred.
      cause - The Throwable which caused the creation of this HttpRequestException.
    • HttpRequestException

      public HttpRequestException(String message, HttpRequest request, Throwable cause)
      Initializes a new instance of the HttpRequestException class.
      Parameters:
      message - The exception message.
      request - The HttpRequest being sent when the exception occurred.
      cause - The Throwable which caused the creation of this HttpRequestException.
    • HttpRequestException

      public HttpRequestException(String message, HttpRequest request, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
      Initializes a new instance of the HttpRequestException class.
      Parameters:
      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.
  • Method Details

    • getRequest

      public HttpRequest getRequest()
      Returns:
      The HttpRequest being sent when the exception occurred.