notmodified.js 538 B

1234567891011121314151617
  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. }
  15. }
  16. exports.default = NotModifiedError;
  17. //# sourceMappingURL=notmodified.js.map