{"size": 496, "ext": "js", "max_stars_repo_path": "core/server/errors/data-import-error.js", "max_stars_repo_name": "jbobron/GhostAzureSetup", "max_stars_repo_stars_event_min_datetime": "2015-02-14T06:49:58.000Z", "max_stars_repo_stars_event_max_datetime": "2018-12-16T06:55:30.000Z", "max_issues_repo_path": "core/server/errors/data-import-error.js", "max_issues_repo_name": "jbobron/GhostAzureSetup", "max_issues_repo_issues_event_min_datetime": "2015-03-03T23:14:10.000Z", "max_issues_repo_issues_event_max_datetime": "2017-01-30T20:16:07.000Z", "max_forks_repo_path": "core/server/errors/data-import-error.js", "max_forks_repo_name": "jbobron/GhostAzureSetup", "max_forks_repo_forks_event_min_datetime": "2015-08-18T00:56:52.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-05T23:23:20.000Z"}
{"max_stars_count": 13, "max_issues_count": 20, "max_forks_count": 9, "avg_line_length": 29.1764705882, "max_line_length": 61, "alphanum_fraction": 0.7298387097}
// # Data import error
// Custom error class with status code and type prefilled.

function DataImportError(message, offendingProperty, value) {
    this.message = message;
    this.stack = new Error().stack;
    this.code = 500;
    this.type = this.name;
    this.property = offendingProperty || undefined;
    this.value = value || undefined;
}

DataImportError.prototype = Object.create(Error.prototype);
DataImportError.prototype.name = 'DataImportError';

module.exports = DataImportError;
