Class DefaultErrorResponseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.microsoft.rest.RestException
com.microsoft.azure.management.appservice.DefaultErrorResponseException
All Implemented Interfaces:
Serializable

public class DefaultErrorResponseException extends com.microsoft.rest.RestException
Exception thrown for an invalid response with DefaultErrorResponse information.
See Also:
  • Constructor Details

    • DefaultErrorResponseException

      public DefaultErrorResponseException(String message, retrofit2.Response<okhttp3.ResponseBody> response)
      Initializes a new instance of the DefaultErrorResponseException class.
      Parameters:
      message - the exception message or the response content if a message is not available
      response - the HTTP response
    • DefaultErrorResponseException

      public DefaultErrorResponseException(String message, retrofit2.Response<okhttp3.ResponseBody> response, DefaultErrorResponse body)
      Initializes a new instance of the DefaultErrorResponseException class.
      Parameters:
      message - the exception message or the response content if a message is not available
      response - the HTTP response
      body - the deserialized response body
  • Method Details

    • body

      public DefaultErrorResponse body()
      Overrides:
      body in class com.microsoft.rest.RestException