{"size": 668, "ext": "js", "max_stars_repo_path": "lib/error/objectParameter.js", "max_stars_repo_name": "GJZwiers/mongoose", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "lib/error/objectParameter.js", "max_issues_repo_name": "GJZwiers/mongoose", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/error/objectParameter.js", "max_forks_repo_name": "GJZwiers/mongoose", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.5483870968, "max_line_length": 78, "alphanum_fraction": 0.6571856287}
/*!
 * Module dependencies.
 */

'use strict';

import { MongooseError } from './index.js';

class ObjectParameterError extends MongooseError {
  /**
   * Constructor for errors that happen when a parameter that's expected to be
   * an object isn't an object
   *
   * @param {Any} value
   * @param {String} paramName
   * @param {String} fnName
   * @api private
   */
  constructor(value, paramName, fnName) {
    super('Parameter "' + paramName + '" to ' + fnName +
      '() must be an object, got ' + value.toString());
  }
}


Object.defineProperty(ObjectParameterError.prototype, 'name', {
  value: 'ObjectParameterError'
});

export { ObjectParameterError }
