initial commit
[squeep-chores] / lib / errors.js
1 'use strict';
2
3 class ChoreError extends Error {
4 constructor(...args) {
5 super(...args);
6 Error.captureStackTrace(ChoreError);
7 }
8
9 get name() {
10 return this.constructor.name;
11 }
12 }
13
14 module.exports = {
15 ChoreError,
16 };