Class ServiceResponseException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ServiceResponseException
    extends AzureException
    A runtime exception indicating service response failure caused by one of the following scenarios:
    1. The request was sent, but the client failed to understand the response. (Not in the right format, partial response, etc.).
    2. The connection may have timed out. These errors can be retried for idempotent or safe operations.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ServiceResponseException​(java.lang.String message)
      Initializes a new instance of the ServiceResponseException class.
      ServiceResponseException​(java.lang.String message, java.lang.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
      • Methods inherited from class java.lang.Object

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

      • ServiceResponseException

        public ServiceResponseException​(java.lang.String message)
        Initializes a new instance of the ServiceResponseException class.
        Parameters:
        message - the exception message or the response content if a message is not available
      • ServiceResponseException

        public ServiceResponseException​(java.lang.String message,
                                        java.lang.Throwable cause)
        Initializes a new instance of the ServiceResponseException class.
        Parameters:
        message - the exception message.
        cause - the Throwable which caused the creation of this ServiceResponseException.