{"size": 414, "ext": "js", "max_stars_repo_path": "src/InputError.js", "max_stars_repo_name": "wvbe/ask-nicely", "max_stars_repo_stars_event_min_datetime": "2016-03-07T12:19:11.000Z", "max_stars_repo_stars_event_max_datetime": "2021-06-14T10:43:20.000Z", "max_issues_repo_path": "src/InputError.js", "max_issues_repo_name": "wvbe/ask-nicely", "max_issues_repo_issues_event_min_datetime": "2020-01-10T10:24:33.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-07T15:23:57.000Z", "max_forks_repo_path": "src/InputError.js", "max_forks_repo_name": "wvbe/ask-nicely", "max_forks_repo_forks_event_min_datetime": "2018-04-21T13:04:09.000Z", "max_forks_repo_forks_event_max_datetime": "2020-01-08T10:54:28.000Z"}
{"max_stars_count": 5, "max_issues_count": 2, "max_forks_count": 2, "avg_line_length": 27.6, "max_line_length": 92, "alphanum_fraction": 0.7536231884}
'use strict';

export default class AskNicelyInputError extends Error {
	constructor(message, solution, code) {
		super(message);
		this.code = code || null;
		this.name = this.constructor.name;
		this.solution = solution;

		// A workaround to make `instanceof AskNicelyInputError` work in ES5 after babel transform
		this.constructor = AskNicelyInputError;
		this.__proto__ = AskNicelyInputError.prototype;
	}
}
