syncIndexes.js 512 B

123456789101112131415161718192021222324252627282930
  1. 'use strict';
  2. /*!
  3. * Module dependencies.
  4. */
  5. const MongooseError = require('./mongooseError');
  6. /**
  7. * SyncIndexes Error constructor.
  8. *
  9. * @param {String} message
  10. * @param {String} errorsMap
  11. * @inherits MongooseError
  12. * @api private
  13. */
  14. class SyncIndexesError extends MongooseError {
  15. constructor(message, errorsMap) {
  16. super(message);
  17. this.errors = errorsMap;
  18. }
  19. }
  20. Object.defineProperty(SyncIndexesError.prototype, 'name', {
  21. value: 'SyncIndexesError'
  22. });
  23. module.exports = SyncIndexesError;