Package com.azure.core.exception
Class ServiceResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.azure.core.exception.AzureException
com.azure.core.exception.ServiceResponseException
- All Implemented Interfaces:
Serializable
A runtime exception indicating service response failure caused by one of the following scenarios:
- The request was sent, but the client failed to understand the response. (Not in the right format, partial response, etc.).
- The connection may have timed out. These errors can be retried for idempotent or safe operations.
- See Also:
-
Constructor Summary
ConstructorDescriptionServiceResponseException
(String message) Initializes a new instance of the ServiceResponseException class.ServiceResponseException
(String message, Throwable cause) Initializes a new instance of the ServiceResponseException class. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceResponseException
Initializes a new instance of the ServiceResponseException class.- Parameters:
message
- the exception message or the response content if a message is not available
-
ServiceResponseException
Initializes a new instance of the ServiceResponseException class.- Parameters:
message
- the exception message.cause
- the Throwable which caused the creation of this ServiceResponseException.
-