1ce37a75147076b98d52d4b281b25a6ac385c486
[squeep-chores] / 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 };