Searched refs:JsErrorObserver (Results 1 – 3 of 3) sorted by relevance
28 JsErrorObserver::JsErrorObserver(napi_env env) : env_(env) {} in JsErrorObserver() function in OHOS::AbilityRuntime::JsErrorObserver30 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 …]
26 class JsErrorObserver : public AppExecFwk::IErrorObserver,27 public std::enable_shared_from_this<JsErrorObserver> {29 explicit JsErrorObserver(napi_env env);30 virtual ~JsErrorObserver();
254 observer_ = std::make_shared<JsErrorObserver>(env); in OnOnOld()307 observer_ = std::make_shared<JsErrorObserver>(env); in OnOnNew()570 std::shared_ptr<JsErrorObserver> observer_;