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.

32 lines
493 B

  1. /*!
  2. * Module requirements
  3. */
  4. var MongooseError = require('../error')
  5. /**
  6. * Document Error
  7. *
  8. * @param {String} msg
  9. * @inherits MongooseError
  10. * @api private
  11. */
  12. function DocumentError (msg) {
  13. MongooseError.call(this, msg);
  14. Error.captureStackTrace(this, arguments.callee);
  15. this.name = 'DocumentError';
  16. };
  17. /*!
  18. * Inherits from MongooseError.
  19. */
  20. DocumentError.prototype.__proto__ = MongooseError.prototype;
  21. /*!
  22. * Module exports.
  23. */
  24. module.exports = exports = DocumentError;