You cannot 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
512 B
JavaScript

'use strict';
/*!
* Module dependencies.
*/
const MongooseError = require('./mongooseError');
/**
* SyncIndexes Error constructor.
*
* @param {String} message
* @param {String} errorsMap
* @inherits MongooseError
* @api private
*/
class SyncIndexesError extends MongooseError {
constructor(message, errorsMap) {
super(message);
this.errors = errorsMap;
}
}
Object.defineProperty(SyncIndexesError.prototype, 'name', {
value: 'SyncIndexesError'
});
module.exports = SyncIndexesError;