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

OperationError 类

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.language.luis.authoring.models.OperationError

public class OperationError

对 API 调用操作时的操作错误详细信息。

方法摘要

修饰符和类型 方法和描述
String code()

获取代码值。

String message()

获取消息值。

OperationError withCode(String code)

设置代码值。

OperationError withMessage(String message)

设置消息值。

方法详细信息

code

public String code()

获取代码值。

Returns:

代码值

message

public String message()

获取消息值。

Returns:

消息值

withCode

public OperationError withCode(String code)

设置代码值。

Parameters:

code - 要设置的代码值

Returns:

OperationError 对象本身。

withMessage

public OperationError withMessage(String message)

设置消息值。

Parameters:

message - 要设置的消息值

Returns:

OperationError 对象本身。

适用于