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.
27 lines
508 B
JavaScript
27 lines
508 B
JavaScript
10 months ago
|
'use strict';
|
||
|
|
||
|
const MongooseError = require('./mongooseError');
|
||
|
|
||
|
/**
|
||
|
* createCollections Error constructor
|
||
|
*
|
||
|
* @param {String} message
|
||
|
* @param {String} errorsMap
|
||
|
* @inherits MongooseError
|
||
|
* @api private
|
||
|
*/
|
||
|
|
||
|
class CreateCollectionsError extends MongooseError {
|
||
|
constructor(message, errorsMap) {
|
||
|
super(message);
|
||
|
this.errors = errorsMap;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Object.defineProperty(CreateCollectionsError.prototype, 'name', {
|
||
|
value: 'CreateCollectionsError'
|
||
|
});
|
||
|
|
||
|
module.exports = CreateCollectionsError;
|
||
|
|