constructor(message, errorsMap) {
    super(message);
    this.errors = errorsMap;
  }
createCollections Error constructor

@param {String} message
@param {String} errorsMap
@inherits MongooseError
@api private