initial commit
[squeep-resource-authentication-module] / lib / errors.js
diff --git a/lib/errors.js b/lib/errors.js
new file mode 100644 (file)
index 0000000..ca2fc24
--- /dev/null
@@ -0,0 +1,18 @@
+'use strict';
+
+const { Errors } = require('@squeep/api-dingus');
+
+class ResourceAuthenticatorError extends Error {
+  constructor(...args) {
+    super(...args);
+    delete this.stack;
+  }
+  get name() {
+    return this.constructor.name;
+  }
+}
+
+module.exports = {
+  ...Errors,
+  ResourceAuthenticatorError,
+};
\ No newline at end of file