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.

notmodified.js 598B

12345678910111213141516171819202122232425262728
  1. /**
  2. * Module dependencies.
  3. */
  4. var inherits = require('util').inherits;
  5. /**
  6. * Module exports.
  7. */
  8. module.exports = NotModifiedError;
  9. /**
  10. * Error subclass to use when the source has not been modified.
  11. *
  12. * @param {String} message optional "message" property to set
  13. * @api protected
  14. */
  15. function NotModifiedError (message) {
  16. this.name = 'NotModifiedError';
  17. this.code = 'ENOTMODIFIED';
  18. this.message = message || 'Source has not been modified since the provied "cache", re-use previous results';
  19. Error.captureStackTrace(this, NotModifiedError);
  20. }
  21. inherits(NotModifiedError, Error);