Skip to content

v0.2.55..v0.2.56 changeset HootExceptionJs.h

Garret Voltz edited this page Aug 14, 2020 · 3 revisions
diff --git a/hoot-js/src/main/cpp/hoot/js/util/HootExceptionJs.h b/hoot-js/src/main/cpp/hoot/js/util/HootExceptionJs.h
index 24eee71..8dbb4e5 100644
--- a/hoot-js/src/main/cpp/hoot/js/util/HootExceptionJs.h
+++ b/hoot-js/src/main/cpp/hoot/js/util/HootExceptionJs.h
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2015, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 #ifndef HOOTEXCEPTIONJS_H
 #define HOOTEXCEPTIONJS_H
@@ -32,7 +32,7 @@
 #include <hoot/core/util/Log.h>
 
 // node.js
-#include <hoot/js/SystemNodeJs.h>
+#include <hoot/js/HootBaseJs.h>
 
 // Qt
 #include <QString>
@@ -43,9 +43,10 @@
 namespace hoot
 {
 
-class HootExceptionJs : public node::ObjectWrap
+class HootExceptionJs : public HootBaseJs
 {
 public:
+
   static void Init(v8::Handle<v8::Object> target);
 
   static v8::Handle<v8::Object> create(const HootException& e) { return create(std::shared_ptr<HootException>(e.clone())); }
@@ -71,8 +72,11 @@ public:
    */
   static void throwAsHootException(v8::TryCatch& tc);
 
+  virtual ~HootExceptionJs() = default;
+
 private:
-  HootExceptionJs();
+
+  HootExceptionJs() = default;
 
   std::shared_ptr<HootException> _e;
   QString _className;
Clone this wiki locally