WIP
[webmention-receiver] / src / errors.js
1 'use strict';
2
3 const { Errors } = require('@squeep/api-dingus');
4
5 class InternalInconsistencyError extends Error {
6 constructor(...args) {
7 super(...args);
8 Error.captureStackTrace(InternalInconsistencyError);
9 }
10
11 get name() {
12 /* istanbul ignore next */
13 return this.constructor.name;
14 }
15 }
16
17 module.exports = {
18 ...Errors,
19 InternalInconsistencyError,
20 };