Class ErrorResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.microsoft.rest.RestException
com.microsoft.azure.management.cdn.ErrorResponseException
- All Implemented Interfaces:
Serializable
public class ErrorResponseException
extends com.microsoft.rest.RestException
Exception thrown for an invalid response with ErrorResponse information.
- See Also:
-
Constructor Summary
ConstructorDescriptionErrorResponseException
(String message, retrofit2.Response<okhttp3.ResponseBody> response) Initializes a new instance of the ErrorResponseException class.ErrorResponseException
(String message, retrofit2.Response<okhttp3.ResponseBody> response, ErrorResponse body) Initializes a new instance of the ErrorResponseException 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
-
ErrorResponseException
Initializes a new instance of the ErrorResponseException class.- Parameters:
message
- the exception message or the response content if a message is not availableresponse
- the HTTP response
-
ErrorResponseException
public ErrorResponseException(String message, retrofit2.Response<okhttp3.ResponseBody> response, ErrorResponse body) Initializes a new instance of the ErrorResponseException 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
-