{"size": 444, "ext": "js", "max_stars_repo_path": "lib/impl/ParseError.js", "max_stars_repo_name": "Alexsey/nollup", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "lib/impl/ParseError.js", "max_issues_repo_name": "Alexsey/nollup", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/impl/ParseError.js", "max_forks_repo_name": "Alexsey/nollup", "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": 34.1538461538, "max_line_length": 91, "alphanum_fraction": 0.6216216216}
module.exports = class ParseError extends Error {
    constructor (file, parent_error) {
        if (parent_error instanceof ParseError) {
            throw parent_error;
        }

        let filename = file.replace(process.cwd(), '');
        let details = parent_error instanceof TypeError? parent_error.stack : parent_error;
        let message = filename + '\n' + details;
        super(message);
        this.name = 'ParseError';
    }
}