Home
last modified time | relevance | path

Searched refs:JsErrorObserver (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/app/error_manager/
H A Djs_error_observer.cpp28 JsErrorObserver::JsErrorObserver(napi_env env) : env_(env) {} in JsErrorObserver() function in OHOS::AbilityRuntime::JsErrorObserver
30 JsErrorObserver::~JsErrorObserver() = default;
32 void JsErrorObserver::OnUnhandledException(const std::string errMsg) in OnUnhandledException()
35 std::weak_ptr<JsErrorObserver> thisWeakPtr(shared_from_this()); in OnUnhandledException()
36 std::shared_ptr<JsErrorObserver> jsObserver = thisWeakPtr.lock(); in OnUnhandledException()
42 void JsErrorObserver::HandleOnUnhandledException(const std::string &errMsg) in HandleOnUnhandledException()
101 bool JsErrorObserver::IsEmpty() in IsEmpty()
107 void JsErrorObserver::OnExceptionObject(const AppExecFwk::ErrorObject &errorObj) in OnExceptionObject()
110 std::weak_ptr<JsErrorObserver> thisWeakPtr(shared_from_this()); in OnExceptionObject()
111 std::shared_ptr<JsErrorObserver> jsObserver = thisWeakPtr.lock(); in OnExceptionObject()
[all …]
H A Djs_error_observer.h26 class JsErrorObserver : public AppExecFwk::IErrorObserver,
27 public std::enable_shared_from_this<JsErrorObserver> {
29 explicit JsErrorObserver(napi_env env);
30 virtual ~JsErrorObserver();
H A Djs_error_manager.cpp254 observer_ = std::make_shared<JsErrorObserver>(env); in OnOnOld()
307 observer_ = std::make_shared<JsErrorObserver>(env); in OnOnNew()
570 std::shared_ptr<JsErrorObserver> observer_;