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.

31 lines
485 B

  1. /*!
  2. * Module dependencies.
  3. */
  4. var MongooseError = require('../error');
  5. /**
  6. * Version Error constructor.
  7. *
  8. * @inherits MongooseError
  9. * @api private
  10. */
  11. function VersionError () {
  12. MongooseError.call(this, 'No matching document found.');
  13. Error.captureStackTrace(this, arguments.callee);
  14. this.name = 'VersionError';
  15. };
  16. /*!
  17. * Inherits from MongooseError.
  18. */
  19. VersionError.prototype.__proto__ = MongooseError.prototype;
  20. /*!
  21. * exports
  22. */
  23. module.exports = VersionError;