ComputerVisionOcrErrorException Class

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

public class ComputerVisionOcrErrorException

Exception thrown for an invalid response with ComputerVisionOcrError information.

Constructor Summary

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

Initializes a new instance of the ComputerVisionOcrErrorException class.

ComputerVisionOcrErrorException(final String message, final Response<ResponseBody> response, final ComputerVisionOcrError body)

Initializes a new instance of the ComputerVisionOcrErrorException class.

Method Summary

Modifier and Type Method and Description
ComputerVisionOcrError body()

Constructor Details

ComputerVisionOcrErrorException

public ComputerVisionOcrErrorException(final String message, final Response response)

Initializes a new instance of the ComputerVisionOcrErrorException class.

Parameters:

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

ComputerVisionOcrErrorException

public ComputerVisionOcrErrorException(final String message, final Response response, final ComputerVisionOcrError body)

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

Applies to