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.
30 lines
512 B
30 lines
512 B
'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;
|
|
|