Class HttpRequestException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- java.lang.RuntimeException
- 
- com.azure.android.core.exception.AzureException
- 
- com.azure.android.core.http.exception.HttpRequestException
 
 
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class HttpRequestException extends com.azure.android.core.exception.AzureExceptionThe exception when an HTTP request fails.Generally, these errors are safe to retry. - See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description HttpRequestException(HttpRequest request)Initializes a new instance of the HttpRequestException class.HttpRequestException(HttpRequest request, java.lang.Throwable cause)Initializes a new instance of the HttpRequestException class.HttpRequestException(java.lang.String message, HttpRequest request)Initializes a new instance of the HttpRequestException class.HttpRequestException(java.lang.String message, HttpRequest request, java.lang.Throwable cause)Initializes a new instance of the HttpRequestException class.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpRequestgetRequest()
 
- 
- 
- 
Constructor Detail- 
HttpRequestExceptionpublic HttpRequestException(HttpRequest request) Initializes a new instance of the HttpRequestException class.- Parameters:
- request- The- HttpRequestbeing sent when the exception occurred.
 
 - 
HttpRequestExceptionpublic 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
 
 - 
HttpRequestExceptionpublic HttpRequestException(HttpRequest request, java.lang.Throwable cause) Initializes a new instance of the HttpRequestException class.- Parameters:
- request- The- HttpRequestbeing sent when the exception occurred.
- cause- The- Throwablewhich caused the creation of this HttpRequestException.
 
 - 
HttpRequestExceptionpublic 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- HttpRequestbeing sent when the exception occurred.
- cause- The- Throwablewhich caused the creation of this HttpRequestException.
 
 
- 
 - 
Method Detail- 
getRequestpublic HttpRequest getRequest() - Returns:
- The HttpRequestbeing sent when the exception occurred.
 
 
- 
 
-