Home
last modified time | relevance | path

Searched refs:jsErrCode (Results 1 - 4 of 4) sorted by relevance

/test/xts/device_attest/interfaces/kits/napi/src/
H A Ddevattest_napi_error.cpp33 int32_t jsErrCode = errCode; in ConvertToJsErrCode() local
34 if (jsErrCode == DEVATTEST_FAIL) { in ConvertToJsErrCode()
35 jsErrCode = DEVATTEST_ERR_JS_SYSTEM_SERVICE_EXCEPTION; in ConvertToJsErrCode()
37 return jsErrCode; in ConvertToJsErrCode()
40 std::string ConvertToJsErrMsg(int32_t jsErrCode) in ConvertToJsErrMsg() argument
42 auto iter = g_errorStringMap.find(jsErrCode); in ConvertToJsErrMsg()
H A Ddevattest_napi.cpp65 int32_t jsErrCode = ConvertToJsErrCode(code); in GenerateBusinessError() local
66 if (jsErrCode == DEVATTEST_SUCCESS) { in GenerateBusinessError()
70 napi_create_int32(env, jsErrCode, &errCode); in GenerateBusinessError()
72 string errMsgStr = ConvertToJsErrMsg(jsErrCode); in GenerateBusinessError()
/test/xts/device_attest/interfaces/kits/napi/include/
H A Ddevattest_napi.h30 int32_t jsErrCode = ConvertToJsErrCode((errCode)); \
31 std::string jsErrMsg = ConvertToJsErrMsg(jsErrCode); \
32 napi_throw_error((env), std::to_string(jsErrCode).c_str(), jsErrMsg.c_str()); \
H A Ddevattest_napi_error.h24 std::string ConvertToJsErrMsg(int32_t jsErrCode);

Completed in 2 milliseconds