Home
last modified time | relevance | path

Searched refs:JSErrorCode (Results 1 - 7 of 7) sorted by relevance

/foundation/distributeddatamgr/pasteboard/interfaces/kits/napi/src/
H A Dpasteboard_common.cpp163 int32_t errCode = static_cast<int32_t>(JSErrorCode::INVALID_PARAMETERS); in CheckArgsType()
171 bool CheckExpression(napi_env env, bool flag, MiscServices::JSErrorCode errCode, const char *message) in CheckExpression()
185 if (!CheckExpression(env, argc >= ARGC_TYPE_SET2, JSErrorCode::INVALID_PARAMETERS, in CheckArgs()
196 env, mimeType != "", JSErrorCode::INVALID_PARAMETERS, "Parameter error. mimeType cannot be empty.") || in CheckArgs()
197 !CheckExpression(env, mimeType.size() <= MIMETYPE_MAX_SIZE, JSErrorCode::INVALID_PARAMETERS, in CheckArgs()
208 JSErrorCode::INVALID_PARAMETERS, "Parameter error. Actual mimeType is not mimetype_pixelmap.")) { in CheckArgs()
214 if (!CheckExpression(env, ret, JSErrorCode::INVALID_PARAMETERS, in CheckArgs()
221 if (!CheckExpression(env, isArrayBuffer, JSErrorCode::INVALID_PARAMETERS, in CheckArgs()
242 env, mimeType != "", JSErrorCode::INVALID_PARAMETERS, "Parameter error. mimeType cannot be empty.") || in CheckArgsMimeType()
243 !CheckExpression(env, mimeType.size() <= MIMETYPE_MAX_SIZE, JSErrorCode in CheckArgsMimeType()
[all...]
H A Dnapi_systempasteboard.cpp248 env, checkArgsCount, JSErrorCode::INVALID_PARAMETERS, "Parameter error. The number of arguments is wrong.") || in CheckAgrsOfOnAndOff()
258 if (!CheckExpression(env, mimeType == STRING_UPDATE, JSErrorCode::INVALID_PARAMETERS, in CheckAgrsOfOnAndOff()
463 env, argc > 0, JSErrorCode::INVALID_PARAMETERS, in SetDataCommon()
465 !CheckExpression(env, PasteDataNapi::IsPasteData(env, argv[0]), JSErrorCode::INVALID_PARAMETERS, in SetDataCommon()
609 if (!CheckExpression(env, value != nullptr, JSErrorCode::REQUEST_TIME_OUT, "request timed out.")) { in GetUnifiedDataSync()
624 env, argc > 0, JSErrorCode::INVALID_PARAMETERS, "Parameter error. Wrong number of arguments.")) { in SetUnifiedDataSync()
630 JSErrorCode::INVALID_PARAMETERS, "Parameter error. The Type of data must be unifiedData.")) { in SetUnifiedDataSync()
652 if (!CheckExpression(env, value != nullptr, JSErrorCode::REQUEST_TIME_OUT, "request timed out.")) { in SetUnifiedDataSync()
674 if (!CheckExpression(env, argc > 0, JSErrorCode::INVALID_PARAMETERS, in SetAppShareOptions()
680 if (!CheckExpression(env, status == napi_ok, JSErrorCode in SetAppShareOptions()
[all...]
H A Dnapi_pastedata.cpp277 if ((!CheckExpression(env, argc > ARGC_TYPE_SET0, JSErrorCode::INVALID_PARAMETERS, in HasMimeType()
315 if ((!CheckExpression(env, argc > ARGC_TYPE_SET0, JSErrorCode::INVALID_PARAMETERS, in RemoveAndGetRecordCommon()
349 if (obj == nullptr || !CheckExpression(env, index < obj->value_->GetRecordCount(), JSErrorCode::OUT_OF_RANGE, in RemoveRecord()
675 if (!CheckExpression(env, argc > ARGC_TYPE_SET1, JSErrorCode::INVALID_PARAMETERS, in ReplaceRecord()
689 if (!CheckExpression(env, index < obj->value_->GetRecordCount(), JSErrorCode::OUT_OF_RANGE, in ReplaceRecord()
698 if (!CheckExpression(env, pasteDataRecord != nullptr, JSErrorCode::INVALID_PARAMETERS, in ReplaceRecord()
840 if (obj == nullptr || !CheckExpression(env, index < obj->value_->GetRecordCount(), JSErrorCode::OUT_OF_RANGE, in GetRecord()
943 if (!CheckExpression(env, argc > ARGC_TYPE_SET0, JSErrorCode::INVALID_PARAMETERS, in SetProperty()
945 !CheckExpression(env, IsProperty(env, argv[0]), JSErrorCode::INVALID_PARAMETERS, in SetProperty()
H A Dnapi_pasteboard.cpp358 if (!CheckExpression(env, argc >= ARGC_TYPE_SET2, JSErrorCode::INVALID_PARAMETERS, in JSCreateRecord()
360 !CheckExpression(env, type == napi_object || type == napi_string, JSErrorCode::INVALID_PARAMETERS, in JSCreateRecord()
486 if (!CheckExpression(env, argc >= ARGC_TYPE_SET1, JSErrorCode::INVALID_PARAMETERS, in JSCreateData()
H A Dnapi_pastedata_record.cpp400 if (!CheckExpression(env, argc >= ARGC_TYPE_SET1, JSErrorCode::INVALID_PARAMETERS, in GetValidTypes()
434 if (!CheckExpression(env, argc >= ARGC_TYPE_SET1, JSErrorCode::INVALID_PARAMETERS, in GetRecordData()
/foundation/distributeddatamgr/pasteboard/interfaces/kits/napi/include/
H A Dpasteboard_js_err.h20 enum class JSErrorCode : int32_t { class
H A Dpasteboard_common.h40 bool CheckExpression(napi_env env, bool expression, MiscServices::JSErrorCode errCode, const char *message);

Completed in 8 milliseconds