文档管理中心

MLTextEmbeddingException

展开

Exception Info

com.huawei.hms.mlsdk.textembedding.MLTextEmbeddingException

异常状态处理类,封装文本嵌入的各种状态。

Public Field Summary

展开

Qualifier and Type

Field and Description

int

ERR_ANALYZE_FAILED

查询失败。

int

ERR_AUTH_FAILED

鉴权失败。

int

ERR_INNER

内部错误。

int

ERR_NET_UNAVAILABLE

网络不可用。

int

ERR_PARAM_ILLEGAL

非法参数。

int

ERR_SERVICE_IS_UNAVAILABLE

服务不可用。

int

ERR_AUTH_TOKEN_INVALIDE

Token非法或者失效。

Public Method Summary

展开

Qualifier and Type

Method Name and Description

int

getErrCode()

获取异常码。

Public Fields

ERR_ANALYZE_FAILED

展开

Field

public static final int ERR_ANALYZE_FAILED

查询失败。

Constant Value: 12104

ERR_AUTH_FAILED

展开

Field

public static final int ERR_AUTH_FAILED

鉴权失败。

Constant Value: 12102

ERR_INNER

展开

Field

public static final int ERR_INNER

内部错误。

Constant Value: 12101

ERR_NET_UNAVAILABLE

展开

Field

public static final int ERR_NET_UNAVAILABLE

网络不可用。

Constant Value: 12198

ERR_PARAM_ILLEGAL

展开

Field

public static final int ERR_PARAM_ILLEGAL

非法参数。

Constant Value: 12103

ERR_SERVICE_IS_UNAVAILABLE

展开

Field

public static final int ERR_SERVICE_IS_UNAVAILABLE

服务不可用。

Constant Value: 12199

ERR_AUTH_TOKEN_INVALIDE

展开

Field

public static final int ERR_AUTH_TOKEN_INVALIDE

Token非法或者失效。

Constant Value: 12105

Public Methods

getErrCode()

展开

Method

public int getErrCode()

获取异常码。

Returns
展开

Type

Description

int

返回异常码。

搜索
请输入您想要搜索的关键词