目录

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

[h2]ERR_ANALYZE_FAILED

Field

public static final int ERR_ANALYZE_FAILED

查询失败。

Constant Value: 12104

[h2]ERR_AUTH_FAILED

Field

public static final int ERR_AUTH_FAILED

鉴权失败。

Constant Value: 12102

[h2]ERR_INNER

Field

public static final int ERR_INNER

内部错误。

Constant Value: 12101

[h2]ERR_NET_UNAVAILABLE

Field

public static final int ERR_NET_UNAVAILABLE

网络不可用。

Constant Value: 12198

[h2]ERR_PARAM_ILLEGAL

Field

public static final int ERR_PARAM_ILLEGAL

非法参数。

Constant Value: 12103

[h2]ERR_SERVICE_IS_UNAVAILABLE

Field

public static final int ERR_SERVICE_IS_UNAVAILABLE

服务不可用。

Constant Value: 12199

[h2]ERR_AUTH_TOKEN_INVALIDE

Field

public static final int ERR_AUTH_TOKEN_INVALIDE

Token非法或者失效。

Constant Value: 12105

Public Methods

[h2]getErrCode()

Method

public int getErrCode()

获取异常码。

Returns

Type

Description

int

返回异常码。