Home
last modified time | relevance | path

Searched refs:errorType (Results 1 – 7 of 7) 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()
131 const ErrorType &errorType) in ErrorCommonConstructor() argument
195 bool isOOMError = errorType == ErrorType::OOM_ERROR; in ErrorCommonConstructor()
/arkcompiler/ets_runtime/ecmascript/tests/
Dthrow_oom_error_test.cpp66 JSType errorType = thread->GetException().GetTaggedObject()->GetClass()->GetObjectType(); in HWTEST_F_L0() local
67 EXPECT_EQ(errorType, JSType::JS_OOM_ERROR); in HWTEST_F_L0()
98 JSType errorType = thread->GetException().GetTaggedObject()->GetClass()->GetObjectType(); in HWTEST_F_L0() local
99 EXPECT_EQ(errorType, JSType::JS_OOM_ERROR); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/
Djs_serializer.cpp513 JSType errorType = taggedObject->GetClass()->GetObjectType(); in WriteJSError() local
514 if (!WriteJSErrorHeader(errorType)) { in WriteJSError()
1371 base::ErrorType errorType; in ReadJSError() local
1374 errorType = base::ErrorType::ERROR; in ReadJSError()
1377 errorType = base::ErrorType::EVAL_ERROR; in ReadJSError()
1380 errorType = base::ErrorType::RANGE_ERROR; in ReadJSError()
1383 errorType = base::ErrorType::REFERENCE_ERROR; in ReadJSError()
1386 errorType = base::ErrorType::TYPE_ERROR; in ReadJSError()
1389 errorType = base::ErrorType::AGGREGATE_ERROR; in ReadJSError()
1392 errorType = base::ErrorType::URI_ERROR; in ReadJSError()
[all …]
Decma_macros.h315 #define THROW_NEW_ERROR_AND_RETURN_HANDLE(thread, errorType, type, message) \ argument
321 JSHandle<JSObject> _error = _factory->GetJSError(errorType, message); \
327 #define THROW_NEW_ERROR_WITH_MSG_AND_RETURN_VALUE(thread, errorType, message, value) \ argument
333 JSHandle<JSObject> _error = _factory->GetJSError(errorType, message); \
Dobject_factory.cpp784 JSHandle<JSObject> ObjectFactory::GetJSError(const ErrorType &errorType, const char *data, bool nee… in GetJSError() argument
786 ASSERT_PRINT(errorType == ErrorType::ERROR || errorType == ErrorType::EVAL_ERROR || in GetJSError()
787errorType == ErrorType::RANGE_ERROR || errorType == ErrorType::REFERENCE_ERROR || in GetJSError()
788 errorType == ErrorType::SYNTAX_ERROR || errorType == ErrorType::TYPE_ERROR || in GetJSError()
789 errorType == ErrorType::URI_ERROR || errorType == ErrorType::OOM_ERROR, in GetJSError()
793 return NewJSError(errorType, handleMsg, needCheckStack); in GetJSError()
796 return NewJSError(errorType, emptyString, needCheckStack); in GetJSError()
799 JSHandle<JSObject> ObjectFactory::NewJSError(const ErrorType &errorType, const JSHandle<EcmaString>… in NewJSError() argument
820 switch (errorType) { in NewJSError()
Dobject_factory.h203 …JSHandle<JSObject> GetJSError(const ErrorType &errorType, const char *data = nullptr, bool needChe…
205 JSHandle<JSObject> NewJSError(const ErrorType &errorType, const JSHandle<EcmaString> &message,