Serializable Direct Known Subclasses: AnomalyDetectorErrorException, BlobBatchStorageException, BlobStorageException, CallingServerErrorException, ChatErrorResponseException, ClientAuthenticationException, CloudErrorException, DataLakeStorageException, DecodeException, ErrorContractException, ErrorContractException, ErrorResponseException, IdentityErrorResponseException, KeyVaultAdministrationException, ManagementException, MetricsAdvisorResponseException, MyAzureException, MyRestException, PhoneNumberErrorResponseException, QueueStorageException, ResourceExistsException, ResourceModifiedException, ResourceNotFoundException, RestErrorException, ShareStorageException, TableServiceException, TooManyRedirectsExceptionThe exception thrown when an unsuccessful response is received with http status code (e.g. 3XX, 4XX, 5XX) from the service request.
See Also:Constructor Summary
Constructors
Initializes a new instance of the HttpResponseException class.
Initializes a new instance of the HttpResponseException class.
Initializes a new instance of the HttpResponseException class.
Initializes a new instance of the HttpResponseException class.
Initializes a new instance of the HttpResponseException class.
Initializes a new instance of the HttpResponseException class.
Method Summary
All MethodsInstance MethodsConcrete Methods
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Details
HttpResponseException
Initializes a new instance of the HttpResponseException class.
Parameters:response- TheHttpResponsereceived that is associated to the exception.HttpResponseException
Initializes a new instance of the HttpResponseException class.
Parameters:message- The exception message.response- TheHttpResponsereceived that is associated to the exception.HttpResponseException
Initializes a new instance of the HttpResponseException class.
Parameters:response- TheHttpResponsereceived that is associated to the exception.cause- TheThrowablewhich caused the creation of this exception.HttpResponseException
Initializes a new instance of the HttpResponseException class.
Parameters:message- The exception message.response- TheHttpResponsereceived that is associated to the exception.value- The deserialized response value.HttpResponseException
Initializes a new instance of the HttpResponseException class.
Parameters:message- The exception message.response- TheHttpResponsereceived that is associated to the exception.cause- TheThrowablewhich caused the creation of this exception.HttpResponseException
public HttpResponseException(String message, HttpResponse response, Throwable cause, boolean enableSuppression, boolean writableStackTrace)Initializes a new instance of the HttpResponseException class.
Parameters:message- The exception message.response- TheHttpResponsereceived that is associated to the exception.cause- TheThrowablewhich caused the creation of this exception.enableSuppression- Whether suppression is enabled or disabled.writableStackTrace- Whether the exception stack trace will be filled in.
Method Details
getResponse
Returns: TheHttpResponsereceived that is associated to the exception.getValue
Returns: The deserialized HTTP response value.
Copyright © 2022. All rights reserved.
ncG1vNJzZmiZqqq%2Fpr%2FDpJirrJmbrqTA0meZpaeSY7CwvsRnrqKmlKTEtHrNnqtomaqqv6Z50p2iZp6fp3qrrdWaZqyskZy2r7OOmqeinJ%2BYwHCvzqZmmrKlp7Jwr86rnGidqJiyscDIqKVogKSpvZOx0qmmp6uVesWksc%2BtoKimXp3Brrg%3D