Home
last modified time | relevance | path

Searched refs:withErrCode (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/base/request/request/frameworks/js/napi/include/
H A Dnapi_utils.h81 void ThrowError(napi_env env, ExceptionErrorCode code, const std::string &msg, bool withErrCode);
84 napi_env env, ExceptionErrorCode errorCode, const std::string &errorMessage, bool withErrCode);
H A Djs_common.h139 bool withErrCode = true; member
/ohos5.0/base/request/request/frameworks/js/napi/src/
H A Drequest_event.cpp139 bool withErrCode = jsParam.task->config_.version == Version::API10; in On() local
141 NapiUtils::ThrowError(env, err.code, err.errInfo, withErrCode); in On()
183 bool withErrCode = jsParam.task->config_.version == Version::API10; in Off() local
185 NapiUtils::ThrowError(env, err.code, err.errInfo, withErrCode); in Off()
H A Djs_initialize.cpp52 bool withErrCode = version != Version::API8; in Initialize() local
60 … env, E_PARAMETER_CHECK, "Missing mandatory parameters, invalid parameter count", withErrCode); in Initialize()
66 config.withErrCode = withErrCode; in Initialize()
72 NapiUtils::ThrowError(env, err.code, err.errInfo, withErrCode); in Initialize()
H A Dnapi_utils.cpp622 void ThrowError(napi_env env, ExceptionErrorCode code, const std::string &msg, bool withErrCode) in ThrowError() argument
624 napi_value error = CreateBusinessError(env, code, msg, withErrCode); in ThrowError()
656 napi_env env, ExceptionErrorCode errorCode, const std::string &errorMessage, bool withErrCode) in CreateBusinessError() argument
664 if (!withErrCode) { in CreateBusinessError()
/ohos5.0/base/request/request/frameworks/cj/ffi/src/
H A Dcj_initialize.cpp722 config.withErrCode = true; in ParseConfig()