You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
316 B

4 years ago
  1. function InvalidPropertyError(message) {
  2. this.name = 'InvalidPropertyError';
  3. this.message = message;
  4. this.stack = (new Error()).stack;
  5. }
  6. InvalidPropertyError.prototype = Object.create(Error.prototype);
  7. InvalidPropertyError.prototype.constructor = InvalidPropertyError;
  8. module.exports = InvalidPropertyError;