Lines Matching refs:JSErrorCode
163 int32_t errCode = static_cast<int32_t>(JSErrorCode::INVALID_PARAMETERS);
171 bool CheckExpression(napi_env env, bool flag, MiscServices::JSErrorCode errCode, const char *message)
185 if (!CheckExpression(env, argc >= ARGC_TYPE_SET2, JSErrorCode::INVALID_PARAMETERS,
196 env, mimeType != "", JSErrorCode::INVALID_PARAMETERS, "Parameter error. mimeType cannot be empty.") ||
197 !CheckExpression(env, mimeType.size() <= MIMETYPE_MAX_SIZE, JSErrorCode::INVALID_PARAMETERS,
208 JSErrorCode::INVALID_PARAMETERS, "Parameter error. Actual mimeType is not mimetype_pixelmap.")) {
214 if (!CheckExpression(env, ret, JSErrorCode::INVALID_PARAMETERS,
221 if (!CheckExpression(env, isArrayBuffer, JSErrorCode::INVALID_PARAMETERS,
242 env, mimeType != "", JSErrorCode::INVALID_PARAMETERS, "Parameter error. mimeType cannot be empty.") ||
243 !CheckExpression(env, mimeType.size() <= MIMETYPE_MAX_SIZE, JSErrorCode::INVALID_PARAMETERS,
254 int32_t errCode = static_cast<int32_t>(JSErrorCode::INVALID_PARAMETERS);
285 int32_t errCode = static_cast<int32_t>(JSErrorCode::INVALID_PARAMETERS);
301 if (!CheckExpression(env, valueType == napi_object, JSErrorCode::INVALID_PARAMETERS,
361 JSErrorCode::INVALID_PARAMETERS, "Parameter error. pixelMap get failed")) {
369 JSErrorCode::INVALID_PARAMETERS, "Parameter error. want get failed")) {