CustomVisionErrorException Class

  • java.lang.Object
    • RestException
      • com.microsoft.azure.cognitiveservices.vision.customvision.training.models.CustomVisionErrorException

public class CustomVisionErrorException

Exception thrown for an invalid response with CustomVisionError information.

Constructor Summary

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

Initializes a new instance of the CustomVisionErrorException class.

CustomVisionErrorException(final String message, final Response<ResponseBody> response, final CustomVisionError body)

Initializes a new instance of the CustomVisionErrorException class.

Method Summary

Modifier and Type Method and Description
CustomVisionError body()

Constructor Details

CustomVisionErrorException

public CustomVisionErrorException(final String message, final Response response)

Initializes a new instance of the CustomVisionErrorException class.

Parameters:

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

CustomVisionErrorException

public CustomVisionErrorException(final String message, final Response response, final CustomVisionError body)

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

Applies to