ServiceResponseException Class
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - java.
lang. RuntimeException - com.
azure. core. exception. AzureException - com.
azure. core. exception. ServiceResponseException
- com.
- com.
- java.
- java.
- java.
public class ServiceResponseException
extends AzureException
The ServiceResponseException
represents an exception thrown when the client fails to understand the service response or the connection times out.
This exception is typically thrown in the following scenarios:
- The request was sent, but the client failed to understand the response. This could be due to the response not being in the expected format, or only a partial response was received.
- The connection may have timed out. These errors can be retried for idempotent or safe operations.
Constructor Summary
Constructor | Description |
---|---|
ServiceResponseException(String message) |
Initializes a new instance of the Service |
ServiceResponseException(String message, Throwable cause) |
Initializes a new instance of the Service |
Methods inherited from java.lang.Object
Methods inherited from java.lang.Throwable
Constructor Details
ServiceResponseException
public ServiceResponseException(String message)
Initializes a new instance of the ServiceResponseException class.
Parameters:
ServiceResponseException
public ServiceResponseException(String message, Throwable cause)
Initializes a new instance of the ServiceResponseException class.
Parameters:
Applies to
Azure SDK for Java