ErrorResponseException Class
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - java.
lang. RuntimeException - com.
microsoft. rest. RestException - com.
microsoft. azure. management. cdn. ErrorResponseException
- com.
- com.
- java.
- java.
- java.
public class ErrorResponseException
extends com.microsoft.rest.RestException
Exception thrown for an invalid response with ErrorResponse information.
Constructor Summary
Constructor | Description |
---|---|
ErrorResponseException(String message, Response<ResponseBody> response) |
Initializes a new instance of the Error |
ErrorResponseException(String message, Response<ResponseBody> response, ErrorResponse body) |
Initializes a new instance of the Error |
Method Summary
Modifier and Type | Method and Description |
---|---|
Error |
body() |
Methods inherited from com.microsoft.rest.RestException
Methods inherited from java.lang.Object
Methods inherited from java.lang.Throwable
Constructor Details
ErrorResponseException
public ErrorResponseException(String message, Response
Initializes a new instance of the ErrorResponseException class.
Parameters:
ErrorResponseException
public ErrorResponseException(String message, Response
Initializes a new instance of the ErrorResponseException class.
Parameters:
Method Details
body
public ErrorResponse body()
Overrides:
ErrorResponseException.body()Applies to
Azure SDK for Java