Ohm-Management - Projektarbeit B-ME
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.

mongooseError.js 428B

12345678910111213141516171819202122232425
  1. 'use strict';
  2. /*!
  3. * ignore
  4. */
  5. function MongooseError(msg) {
  6. Error.call(this);
  7. if (Error.captureStackTrace) {
  8. Error.captureStackTrace(this);
  9. } else {
  10. this.stack = new Error().stack;
  11. }
  12. this.message = msg;
  13. this.name = 'MongooseError';
  14. }
  15. /*!
  16. * Inherits from Error.
  17. */
  18. MongooseError.prototype = Object.create(Error.prototype);
  19. MongooseError.prototype.constructor = Error;
  20. module.exports = MongooseError;