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