forked from CSI-KJSCE/BOS-React-
Commit With Frontend and Backend in MERN
This commit is contained in:
26
backend/node_modules/mongoose/lib/error/createCollectionsError.js
generated
vendored
Normal file
26
backend/node_modules/mongoose/lib/error/createCollectionsError.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
'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;
|
||||
|
||||
Reference in New Issue
Block a user