GIF89a php
Current File : /home/viralhoga/game_viralhoga_com/node_modules/mongoose/lib/error/createCollectionsError.js
'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;