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 Summary
ConstructorDescriptionResponseWithErrorException
(String message, retrofit2.Response<okhttp3.ResponseBody> response) Initializes a new instance of the ResponseWithErrorException class.ResponseWithErrorException
(String message, retrofit2.Response<okhttp3.ResponseBody> response, ResponseWithError body) Initializes a new instance of the ResponseWithErrorException class. -
Method Summary
Methods inherited from class com.microsoft.rest.RestException
response
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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 availableresponse
- 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 availableresponse
- the HTTP responsebody
- the deserialized response body
-
-
Method Details
-
body
- Overrides:
body
in classcom.microsoft.rest.RestException
-