repo_description: MongoDB object modeling designed to work in an asynchronous environment.
repo_topics: mongo mongodb nodejs odm orm
code: '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;
  
  