Class HttpRequestException

  • All Implemented Interfaces:
    java.io.Serializable

    public class HttpRequestException
    extends com.azure.android.core.exception.AzureException
    The exception when an HTTP request fails.

    Generally, these errors are safe to retry.

    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      HttpRequest getRequest()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • 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​(java.lang.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,
                                    java.lang.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​(java.lang.String message,
                                    HttpRequest request,
                                    java.lang.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.
    • Method Detail

      • getRequest

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