Class ComputerVisionErrorResponseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.microsoft.rest.RestException
-
- com.microsoft.azure.cognitiveservices.vision.computervision.models.ComputerVisionErrorResponseException
-
- All Implemented Interfaces:
Serializable
public class ComputerVisionErrorResponseException extends com.microsoft.rest.RestException
Exception thrown for an invalid response with ComputerVisionErrorResponse information.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ComputerVisionErrorResponseException(String message, retrofit2.Response<okhttp3.ResponseBody> response)
Initializes a new instance of the ComputerVisionErrorResponseException class.ComputerVisionErrorResponseException(String message, retrofit2.Response<okhttp3.ResponseBody> response, ComputerVisionErrorResponse body)
Initializes a new instance of the ComputerVisionErrorResponseException class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputerVisionErrorResponse
body()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ComputerVisionErrorResponseException
public ComputerVisionErrorResponseException(String message, retrofit2.Response<okhttp3.ResponseBody> response)
Initializes a new instance of the ComputerVisionErrorResponseException class.- Parameters:
message
- the exception message or the response content if a message is not availableresponse
- the HTTP response
-
ComputerVisionErrorResponseException
public ComputerVisionErrorResponseException(String message, retrofit2.Response<okhttp3.ResponseBody> response, ComputerVisionErrorResponse body)
Initializes a new instance of the ComputerVisionErrorResponseException class.- Parameters:
message
- the exception message or the response content if a message is not availableresponse
- the HTTP responsebody
- the deserialized response body
-
-
Method Detail
-
body
public ComputerVisionErrorResponse body()
- Overrides:
body
in classcom.microsoft.rest.RestException
-
-