ComputerVisionErrorResponseException Class

  • java.lang.Object
    • RestException
      • com.microsoft.azure.cognitiveservices.vision.computervision.models.ComputerVisionErrorResponseException

public class ComputerVisionErrorResponseException

Exception thrown for an invalid response with ComputerVisionErrorResponse information.

Constructor Summary

Constructor Description
ComputerVisionErrorResponseException(final String message, final Response<ResponseBody> response)

Initializes a new instance of the ComputerVisionErrorResponseException class.

ComputerVisionErrorResponseException(final String message, final Response<ResponseBody> response, final ComputerVisionErrorResponse body)

Initializes a new instance of the ComputerVisionErrorResponseException class.

Method Summary

Modifier and Type Method and Description
ComputerVisionErrorResponse body()

Constructor Details

ComputerVisionErrorResponseException

public ComputerVisionErrorResponseException(final String message, final Response response)

Initializes a new instance of the ComputerVisionErrorResponseException class.

Parameters:

message - the exception message or the response content if a message is not available
response - the HTTP response

ComputerVisionErrorResponseException

public ComputerVisionErrorResponseException(final String message, final Response response, final ComputerVisionErrorResponse body)

Initializes a new instance of the ComputerVisionErrorResponseException 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 ComputerVisionErrorResponse body()

Applies to