mirror of
https://github.com/wishthis/wishthis.git
synced 2026-01-02 04:08:23 -05:00
11 lines
316 B
JavaScript
11 lines
316 B
JavaScript
function InvalidPropertyError(message) {
|
|
this.name = 'InvalidPropertyError';
|
|
this.message = message;
|
|
this.stack = (new Error()).stack;
|
|
}
|
|
|
|
InvalidPropertyError.prototype = Object.create(Error.prototype);
|
|
InvalidPropertyError.prototype.constructor = InvalidPropertyError;
|
|
|
|
module.exports = InvalidPropertyError;
|