mirror of
https://github.com/xlorepdarkhelm/numinar-coding-project.git
synced 2026-09-06 08:48:24 -04: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;
|