Class ResponseWithErrorException

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

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

    • ResponseWithErrorException

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

      public ResponseWithErrorException(String message, retrofit2.Response<okhttp3.ResponseBody> response, ResponseWithError body)
      Initializes a new instance of the ResponseWithErrorException 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 ResponseWithError body()
      Overrides:
      body in class com.microsoft.rest.RestException