你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CustomVisionErrorException 类

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

public class CustomVisionErrorException

针对包含 CustomVisionError 信息的无效响应引发的异常。

构造函数摘要

构造函数 说明
CustomVisionErrorException(final String message, final Response<ResponseBody> response)

初始化 CustomVisionErrorException 类的新实例。

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

初始化 CustomVisionErrorException 类的新实例。

方法摘要

修饰符和类型 方法和描述
CustomVisionError body()

构造函数详细信息

CustomVisionErrorException

public CustomVisionErrorException(final String message, final Response response)

初始化 CustomVisionErrorException 类的新实例。

Parameters:

message - 异常消息或响应内容(如果消息不可用)
response - HTTP 响应

CustomVisionErrorException

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

初始化 CustomVisionErrorException 类的新实例。

Parameters:

message - 异常消息或响应内容(如果消息不可用)
response - HTTP 响应
body - 反序列化的响应正文

方法详细信息

body

public CustomVisionError body()

适用于