Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
azanul / server / node_modules / mongoose / lib / error / createCollectionsError.js
Size: Mime:
'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;