| CLASS info |
| public class SafetyDetectStatusCode extends com.huawei.hms.common.api.CommonStatusCodes |
| Safety Detect SDK 的状态码 |
| Type | Name | Desc |
| int | SDK_INTERNAL_ERROR | HMS SDK 内部错误 |
| int | NETWORK_ERROR | HMS SDK 网络异常 |
| int | UNSUPPORTED_AREA | 不支持的区域 |
| int | UNSUPPORTED_EMUI_VERSION | 当前的设备版本不支持 Safety Detect 功能 |
| int | PARAM_ERROR_EMPTY | 请求必填参数为空 |
| int | PARAM_ERROR_INVALID | 参数校验失败 |
| int | APPS_CHECK_INTERNAL_ERROR | 应用安全检测内部错误 |
| int | URL_CHECK_INNER_ERROR | 恶意网址检测内部错误 |
| int | CHECK_WITHOUT_INIT | 在调用 URLCheck 接口前未调用 initUrlCheck 接口,初始化失败 |
| int | URL_CHECK_THREAT_TYPE_INVALID | 调用urlCheck传入了不支持的网址检测/分类类型。Safety Detect当前仅支持phishing和malware |
| int | URL_CHECK_REQUEST_PARAM_INVALID | 调用urlCheck接口传入参数错误 |
| int | URL_CHECK_REQUEST_APPID_INVALID | 调用urlCheck接口时没有传入正确的appId |
| int | DETECT_FAIL | 虚假用户检测失败 |
| int | USER_DETECT_TIMEOUT | 虚假用户检测超时 |
| int | USER_DETECT_INVALID_APPID | 调用userDetection接口时没有传入正确的appId |
| Return type | Method name |
| static String | getStatusCodeString(int code) 提供 Safety Detect 错误码的详细描述 |
| Constant |
| public static final int SDK_INTERNAL_ERROR |
值: 19001 SysIntegrity 接口发生了内部错误,比如到服务器上换签名失败,或 TSS 发生内部错误 |
| Constant |
| public static final int NETWORK_ERROR |
值: 19002 SDK网络连接异常 public static final int UNSUPPORTED_AREA 值:19003 Safety Detect不支持的区域 |
| Constant |
| public static final int UNSUPPORTED_EMUI_VERSION |
值: 19202 用户的设备版本不支持。支持 SafetyDetect 的设备需满足EMUI的依赖说明 |
| Constant |
| public static final int PARAM_ERROR_EMPTY |
值: 19150 请求 Safety Detect SDK 的必填参数为空 |
| Constant |
| public static final int PARAM_ERROR_INVALID |
值: 19151 请求 Safety Detect SDK 的参数不符合规定,参数校验失败 |
| Constant |
| public static final int APPS_CHECK_INTERNAL_ERROR |
值: 19401 请求应用安全检测失败,接口发生内部错误 |
| Constant |
| public static final int URL_CHECK_INNER_ERROR |
值: 19600 请求恶意网址检测失败,接口发生内部错误 |
| Constant |
| public static final int CHECK_WITHOUT_INIT |
值: 19601 在调用 urlCheck 接口前未调用 initUrlCheck 接口 |
| Constant |
| public static final int URL_CHECK_THREAT_TYPE_INVALID |
值: 19602 调用urlCheck传入了不支持的网址检测/分类类型,Safety Detect当前仅支持phishing和malware |
| Constant |
| public static final int URL_CHECK_REQUEST_PARAM_INVALID |
值: 19603 调用 urlCheck 接口传入参数错误 |
| Constant |
| public static final int URL_CHECK_REQUEST_APPID_INVALID |
值: 19604 调用 urlCheck 接口时没有传入正确的 appId |
| Constant |
| public static final int DETECT_FAIL |
值: 19800 虚假用户检测失败 |
| Constant |
| public static final int USER_DETECT_TIMEOUT |
值: 19801 虚假用户检测超时 public static final int USER_DETECT_INVALID_APPID 值: 19802 调用userDetection接口时没有传入正确的 appId |
| Method |
| public static String getStatusCodeString (int code) |
| 返回错误码的详细描述 |
Parameters
| Parameter name | Parameter desc |
| code | 错误码 |
Return
| type | desc |
| String | 错误码的详细描述 |
其他错误码请参考:[HMS SDK框架错误码]