notmodified.js 597 B

123456789101112131415161718
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. /**
  4. * Error subclass to use when the source has not been modified.
  5. *
  6. * @param {String} message optional "message" property to set
  7. * @api protected
  8. */
  9. class NotModifiedError extends Error {
  10. constructor(message) {
  11. super(message ||
  12. 'Source has not been modified since the provied "cache", re-use previous results');
  13. this.code = 'ENOTMODIFIED';
  14. Object.setPrototypeOf(this, new.target.prototype);
  15. }
  16. }
  17. exports.default = NotModifiedError;
  18. //# sourceMappingURL=notmodified.js.map