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