Home
last modified time | relevance | path

Searched refs:errorValue (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/commonlibrary/ets_utils/tools/
H A Dets_error.h32 napi_value errorValue = nullptr; in ThrowError() local
44 napi_create_error(env, nullptr, msg, &errorValue); in ThrowError()
45 napi_set_named_property(env, errorValue, "code", code); in ThrowError()
46 napi_set_named_property(env, errorValue, "name", name); in ThrowError()
48 napi_throw(env, errorValue); in ThrowError()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/theme/
H A Dtheme_style.h62 std::pair<bool, T> GetValue(const T& errorValue) const in GetValue()
66 return std::make_pair(false, errorValue); in GetValue()
131 T GetAttr(const std::string& attr, const T& errorValue) const in GetAttr() argument
137 return errorValue; in GetAttr()
144 return errorValue; in GetAttr()
148 return errorValue; in GetAttr()
150 return parent->GetAttr<T>(parseResult.refAttr, errorValue); in GetAttr()
152 auto valuePair = valueWrapper.GetValue<T>(errorValue); in GetAttr()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/animation/
H A Danimation_util.h69 std::function<T(uint32_t refId)>&& idRefFunc, const T& errorValue) const in ParseThemeReference() argument
77 return errorValue; in ParseThemeReference()
86 return errorValue; in ParseThemeReference()
88 return themeStyle->GetAttr<T>(parseResult.refAttr, errorValue); in ParseThemeReference()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/base/
H A Ddfx_assist.cpp23 void DfxAssist::DumpErrorCode(const jerry_value_t errorValue) in DumpErrorCode() argument
30 jerry_value_t errValue = jerry_get_value_from_error(errorValue, false); in DumpErrorCode()
68 void DfxAssist::DumpErrorMessage(const jerry_value_t errorValue) in DumpErrorMessage() argument
73 jerry_value_t errorVal = jerry_get_value_from_error(errorValue, false); in DumpErrorMessage()
H A Ddfx_assist.h37 void DumpErrorCode(const jerry_value_t errorValue);
44 void DumpErrorMessage(const jerry_value_t errorValue);
H A Djs_fwk_common.cpp274 void PrintErrorMessage(const jerry_value_t errorValue) in PrintErrorMessage() argument
277 dfxAssist.DumpErrorCode(errorValue); in PrintErrorMessage()
278 dfxAssist.DumpErrorMessage(errorValue); in PrintErrorMessage()
H A Djs_fwk_common.h250 void PrintErrorMessage(const jerry_value_t errorValue);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dcontent_controller.cpp330 auto errorValue = FilterWithRegex(filter, result); in FilterWithEvent() local
331 if (!errorValue.empty()) { in FilterWithEvent()
339 eventHub->FireOnInputFilterError(errorValue); in FilterWithEvent()
342 textFieldAccessibilityProperty->SetErrorText(errorValue); in FilterWithEvent()
344 return !errorValue.empty(); in FilterWithEvent()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/test/unittest/common/
H A Ddfx_tdd_test.cpp599 JSValue errorValue = JSObject::Call(page, FUNC_NAME); in DfxTest002() local
600 if (!jerry_value_is_error(errorValue)) { in DfxTest002()
609 jerry_value_t errorVal = jerry_get_value_from_error(errorValue, false); in DfxTest002()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/common/
H A Ddeclaration.h508 std::function<T(uint32_t refId)>&& idRefFunc, const T& errorValue) const in ParseThemeReference() argument
516 return errorValue; in ParseThemeReference()
525 return errorValue; in ParseThemeReference()
527 return themeStyle->GetAttr<T>(parseResult.refAttr, errorValue); in ParseThemeReference()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_node.h948 std::function<T(uint32_t refId)>&& idRefFunc, const T& errorValue) const in ParseThemeReference() argument
956 return errorValue; in ParseThemeReference()
965 return errorValue; in ParseThemeReference()
967 return themeStyle->GetAttr<T>(parseResult.refAttr, errorValue); in ParseThemeReference()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/native_engine/jsi/
H A Djsi.cpp546 JsiErrorType JSI::GetErrorType(JSIValue errorValue) in GetErrorType() argument
548 if (!ValueIsError(errorValue)) { in GetErrorType()
552 jerry_value_t jError = AS_JERRY_VALUE(errorValue); in GetErrorType()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_input/
H A Dtext_input_layout_algorithm.cpp170 auto errorValue = pattern->GetErrorTextString(); in BeforeErrorLayout() local
171 if (pattern->IsShowError() && !pattern->IsDisabled() && !errorValue.empty()) { in BeforeErrorLayout()
/ohos5.0/foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/jsi/
H A Djsi.h413 static JsiErrorType GetErrorType(JSIValue errorValue);
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/entrance/pa_engine/engine/jsi/
H A Djsi_pa_engine.cpp202 napi_value errorValue; in RegisterConsoleModule() local
203 napi_create_function(env, "error", strlen("error"), AppErrorLogPrint, nullptr, &errorValue); in RegisterConsoleModule()
210 napi_set_named_property(env, consoleObj, "error", errorValue); in RegisterConsoleModule()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/
H A Djsi_declarative_engine.cpp739 napi_value errorValue; in InitConsoleModule() local
740 napi_create_function(env, "error", strlen("error"), AppErrorLogPrint, nullptr, &errorValue); in InitConsoleModule()
747 napi_set_named_property(env, consoleObj, "error", errorValue); in InitConsoleModule()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/
H A Djsi_engine.cpp2788 napi_value errorValue; in RegisterConsoleModule() local
2789 napi_create_function(env, "error", strlen("error"), AppErrorLogPrint, nullptr, &errorValue); in RegisterConsoleModule()
2796 napi_set_named_property(env, consoleObj, "error", errorValue); in RegisterConsoleModule()
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/inner/napi_ability_common/
H A Dnapi_context.cpp3233 napi_value errorValue = CreateJsError(env, errorCode, ConvertErrorCode(errorCode)); in OnRequestPermissionsFromUser() local
3234 napiAsyncTask->Reject(env, errorValue); in OnRequestPermissionsFromUser()