Home
last modified time | relevance | path

Searched refs:errorType (Results 1 – 11 of 11) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/base/
Derror_helper.h31 static JSTaggedValue ErrorCommonToString(EcmaRuntimeCallInfo *argv, const ErrorType &errorType);
33 …static JSTaggedValue ErrorCommonConstructor(EcmaRuntimeCallInfo *argv, const ErrorType &errorType);
41 const ErrorType &errorType);
Derror_helper.cpp32 …TaggedValue ErrorHelper::ErrorCommonToString(EcmaRuntimeCallInfo *argv, const ErrorType &errorType) in ErrorCommonToString() argument
53 name = ErrorHelper::GetErrorName(thread, name, errorType); in ErrorCommonToString()
91 const ErrorType &errorType) in GetErrorName() argument
96 switch (errorType) { in GetErrorName()
134 [[maybe_unused]] const ErrorType &errorType) in ErrorCommonConstructor() argument
/arkcompiler/ets_runtime/ecmascript/tests/
Dthrow_oom_error_test.cpp67 JSType errorType = thread->GetException().GetTaggedObject()->GetClass()->GetObjectType(); in HWTEST_F_L0() local
68 EXPECT_EQ(errorType, JSType::JS_OOM_ERROR); in HWTEST_F_L0()
100 JSType errorType = thread->GetException().GetTaggedObject()->GetClass()->GetObjectType(); in HWTEST_F_L0() local
101 EXPECT_EQ(errorType, JSType::JS_OOM_ERROR); in HWTEST_F_L0()
Dgc_third_test.cpp133 JSType errorType = thread->GetException().GetTaggedObject()->GetClass()->GetObjectType(); in HWTEST_F_L0() local
134 EXPECT_EQ(errorType, JSType::JS_OOM_ERROR); in HWTEST_F_L0()
/arkcompiler/runtime_core/static_core/assembler/
Derror.h118 …inline Error(std::string s, size_t line, ErrorType errorType, std::string overinfo, size_t p, size…
124 err(errorType), in type()
/arkcompiler/ets_runtime/ecmascript/serializer/
Dbase_deserializer.h86 …JSErrorInfo(uint8_t errorType, JSTaggedValue errorMsg, uintptr_t objAddr, size_t offset, bool root) in JSErrorInfo()
87 … : errorType_(errorType), errorMsg_(errorMsg), objAddr_(objAddr), offset_(offset), root_(root) {} in JSErrorInfo()
Dbase_deserializer.cpp169 … base::ErrorType errorType = base::ErrorType(type - static_cast<uint8_t>(JSType::JS_ERROR_FIRST)); in DeserializeJSError() local
173 …JSHandle<JSObject> errorTag = factory->NewJSError(errorType, JSHandle<EcmaString>(thread_, errorMs… in DeserializeJSError()
/arkcompiler/ets_runtime/ecmascript/
Djs_serializer.cpp526 JSType errorType = taggedObject->GetClass()->GetObjectType(); in WriteJSError() local
527 if (!WriteJSErrorHeader(errorType)) { in WriteJSError()
1387 base::ErrorType errorType; in ReadJSError() local
1390 errorType = base::ErrorType::ERROR; in ReadJSError()
1393 errorType = base::ErrorType::EVAL_ERROR; in ReadJSError()
1396 errorType = base::ErrorType::RANGE_ERROR; in ReadJSError()
1399 errorType = base::ErrorType::REFERENCE_ERROR; in ReadJSError()
1402 errorType = base::ErrorType::TYPE_ERROR; in ReadJSError()
1405 errorType = base::ErrorType::AGGREGATE_ERROR; in ReadJSError()
1408 errorType = base::ErrorType::URI_ERROR; in ReadJSError()
[all …]
Decma_macros.h348 #define THROW_NEW_ERROR_AND_RETURN_HANDLE(thread, errorType, type, message) \ argument
354 JSHandle<JSObject> _error = _factory->GetJSError(errorType, message); \
360 #define THROW_NEW_ERROR_WITH_MSG_AND_RETURN_VALUE(thread, errorType, message, value) \ argument
366 JSHandle<JSObject> _error = _factory->GetJSError(errorType, message); \
Dobject_factory.cpp850 JSHandle<JSObject> ObjectFactory::GetJSError(const ErrorType &errorType, const char *data, bool nee… in GetJSError() argument
852 ASSERT_PRINT(errorType == ErrorType::ERROR || errorType == ErrorType::EVAL_ERROR || in GetJSError()
853errorType == ErrorType::RANGE_ERROR || errorType == ErrorType::REFERENCE_ERROR || in GetJSError()
854 errorType == ErrorType::SYNTAX_ERROR || errorType == ErrorType::TYPE_ERROR || in GetJSError()
855 errorType == ErrorType::URI_ERROR || errorType == ErrorType::OOM_ERROR || in GetJSError()
856 errorType == ErrorType::TERMINATION_ERROR, in GetJSError()
860 return NewJSError(errorType, handleMsg, needCheckStack); in GetJSError()
863 return NewJSError(errorType, emptyString, needCheckStack); in GetJSError()
866 JSHandle<JSObject> ObjectFactory::NewJSError(const ErrorType &errorType, const JSHandle<EcmaString>… in NewJSError() argument
887 switch (errorType) { in NewJSError()
Dobject_factory.h209 …JSHandle<JSObject> GetJSError(const ErrorType &errorType, const char *data = nullptr, bool needChe…
211 JSHandle<JSObject> NewJSError(const ErrorType &errorType, const JSHandle<EcmaString> &message,