initial commit
[squeep-resource-authentication-module] / lib / errors.js
1 'use strict';
2
3 const { Errors } = require('@squeep/api-dingus');
4
5 class ResourceAuthenticatorError extends Error {
6 constructor(...args) {
7 super(...args);
8 delete this.stack;
9 }
10 get name() {
11 return this.constructor.name;
12 }
13 }
14
15 module.exports = {
16 ...Errors,
17 ResourceAuthenticatorError,
18 };