Home
last modified time | relevance | path

Searched refs:ExceptionErrorCode (Results 1 – 13 of 13) sorted by relevance

/ohos5.0/base/request/request/frameworks/cj/ffi/src/
H A Dcj_request_event.cpp68 ExceptionErrorCode CJRequestEvent::Exec(std::string execType, const CJTask *task) in Exec()
72 return ExceptionErrorCode::E_PARAMETER_CHECK; in Exec()
75 return (ExceptionErrorCode)handle->second(task); in Exec()
78 ExceptionErrorCode CJRequestEvent::StartExec(const CJTask *task) in StartExec()
84 return ExceptionErrorCode::E_FILE_IO; in StartExec()
94 return ExceptionErrorCode::E_FILE_IO; in StartExec()
101 ExceptionErrorCode CJRequestEvent::StopExec(const CJTask *task) in StopExec()
103 return (ExceptionErrorCode)RequestManager::GetInstance()->Stop(task->GetTidStr()); in StopExec()
106 ExceptionErrorCode CJRequestEvent::PauseExec(const CJTask *task) in PauseExec()
111 ExceptionErrorCode CJRequestEvent::ResumeExec(const CJTask *task) in ResumeExec()
[all …]
H A Dcj_request_impl.cpp28 using OHOS::Request::ExceptionErrorCode;
50 { ExceptionErrorCode::E_OK, E_OK_INFO },
51 { ExceptionErrorCode::E_PERMISSION, E_PERMISSION_INFO },
54 { ExceptionErrorCode::E_FILE_IO, E_FILE_IO_INFO },
55 { ExceptionErrorCode::E_FILE_PATH, E_FILE_PATH_INFO },
57 { ExceptionErrorCode::E_TASK_QUEUE, E_TASK_QUEUE_INFO },
58 { ExceptionErrorCode::E_TASK_MODE, E_TASK_MODE_INFO },
61 { ExceptionErrorCode::E_OTHER, E_OTHER_INFO },
144 ret.err.errCode = ExceptionErrorCode::E_OTHER; in CreateTask()
166 if (result.code != ExceptionErrorCode::E_OK) { in RemoveTask()
[all …]
H A Dcj_request_common.cpp27 using OHOS::Request::ExceptionErrorCode;
88 auto generateError = [&err](ExceptionErrorCode errorCode, const std::string &info) { in ConvertError()
95 case ExceptionErrorCode::E_UNLOADING_SA: in ConvertError()
96 generateError(ExceptionErrorCode::E_SERVICE_ERROR, "Service ability is quitting."); in ConvertError()
98 case ExceptionErrorCode::E_IPC_SIZE_TOO_LARGE: in ConvertError()
99 generateError(ExceptionErrorCode::E_SERVICE_ERROR, "Ipc error."); in ConvertError()
101 case ExceptionErrorCode::E_MIMETYPE_NOT_FOUND: in ConvertError()
102 generateError(ExceptionErrorCode::E_OTHER, "Mimetype not found."); in ConvertError()
104 case ExceptionErrorCode::E_TASK_INDEX_TOO_LARGE: in ConvertError()
105 generateError(ExceptionErrorCode::E_TASK_NOT_FOUND, "Task index out of range."); in ConvertError()
[all …]
H A Dcj_initialize.cpp40 using OHOS::Request::ExceptionErrorCode;
59 .code = ExceptionErrorCode::E_OTHER, in ParseBundleName()
67 .code = ExceptionErrorCode::E_OK in ParseBundleName()
516 .code = ExceptionErrorCode::E_OK in UploadBodyFileProc()
543 if (ret.code != ExceptionErrorCode::E_OK) { in CheckUploadBodyFiles()
548 .code = ExceptionErrorCode::E_OK in CheckUploadBodyFiles()
588 ExceptionErrorCode code = ExceptionErrorCode::E_FILE_IO; in GetFD()
595 ExceptionErrorCode code = ExceptionErrorCode::E_FILE_IO; in GetFD()
677 if (err.code != ExceptionErrorCode::E_OK) { in CheckFileSpec()
699 if (err.code != ExceptionErrorCode::E_OK) { in CheckFilePath()
[all …]
H A Dcj_request_task.cpp39 using OHOS::Request::ExceptionErrorCode;
272 .code = ExceptionErrorCode::E_SERVICE_ERROR in Create()
281 if (err != ExceptionErrorCode::E_OK) { in Create()
284 .code = (ExceptionErrorCode)err in Create()
299 .code = ExceptionErrorCode::E_OK in Create()
306 if (result != ExceptionErrorCode::E_OK) { in Remove()
311 .code = ExceptionErrorCode::E_OK in Remove()
333 .code = ExceptionErrorCode::E_PARAMETER_CHECK, .errInfo = "First parameter error" in On()
351 .code = ExceptionErrorCode::E_OK in On()
363 .code = ExceptionErrorCode::E_PARAMETER_CHECK, in Off()
[all …]
/ohos5.0/base/request/request/frameworks/cj/ffi/include/
H A Dcj_request_event.h24 using OHOS::Request::ExceptionErrorCode;
35 static ExceptionErrorCode Exec(std::string execType, const CJTask *task);
42 static ExceptionErrorCode StartExec(const CJTask *task);
43 static ExceptionErrorCode StopExec(const CJTask *task);
44 static ExceptionErrorCode PauseExec(const CJTask *task);
45 static ExceptionErrorCode ResumeExec(const CJTask *task);
H A Dcj_request_impl.h29 using OHOS::Request::ExceptionErrorCode;
47 static RetError Convert2RetErr(ExceptionErrorCode code);
H A Dcj_listener_list.h28 using OHOS::Request::ExceptionErrorCode;
/ohos5.0/base/request/request/common/include/
H A Dconstant.h31 enum ExceptionErrorCode : int32_t { enum
53 ExceptionErrorCode code;
/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);
/ohos5.0/base/request/request/frameworks/js/napi/include/upload/
H A Djs_util.h69 napi_env env, const ExceptionErrorCode &errorCode, const std::string &errorMessage);
/ohos5.0/base/request/request/frameworks/js/napi/src/upload/
H A Djs_util.cpp27 static const std::map<ExceptionErrorCode, std::string> ErrorCodeToMsg{
341 napi_env env, const ExceptionErrorCode &errorCode, const std::string &errorMessage) in CreateBusinessError()
/ohos5.0/base/request/request/frameworks/js/napi/src/
H A Dnapi_utils.cpp70 static const std::map<ExceptionErrorCode, std::string> ErrorCodeToMsg{ { E_OK, E_OK_INFO },
622 void ThrowError(napi_env env, ExceptionErrorCode code, const std::string &msg, bool withErrCode) in ThrowError()
630 auto generateError = [&err](ExceptionErrorCode errorCode, const std::string &info) { in ConvertError()
650 generateError(static_cast<ExceptionErrorCode>(errorCode), ""); in ConvertError()
656 napi_env env, ExceptionErrorCode errorCode, const std::string &errorMessage, bool withErrCode) in CreateBusinessError()