{"size": 697, "ext": "js", "max_stars_repo_path": "src/transport/KodiTransportError.js", "max_stars_repo_name": "instabledesign/kodi-client", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/transport/KodiTransportError.js", "max_issues_repo_name": "instabledesign/kodi-client", "max_issues_repo_issues_event_min_datetime": "2018-10-20T16:31:47.000Z", "max_issues_repo_issues_event_max_datetime": "2018-10-20T16:33:24.000Z", "max_forks_repo_path": "src/transport/KodiTransportError.js", "max_forks_repo_name": "instabledesign/kodi-client", "max_forks_repo_forks_event_min_datetime": "2019-03-08T09:00:29.000Z", "max_forks_repo_forks_event_max_datetime": "2019-03-08T09:00:29.000Z"}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": 1, "avg_line_length": 24.8928571429, "max_line_length": 65, "alphanum_fraction": 0.6929698709}
function TransportError(message, extraData) {
    let instance = new Error(message);
    instance.name = 'TransportError';
    instance.extraData = extraData;
    Object.setPrototypeOf(instance, Object.getPrototypeOf(this));
    if(Error.captureStackTrace) {
        Error.captureStackTrace(instance, TransportError);
    }
    return instance;
}

TransportError.prototype = Object.create(Error.prototype, {
    constructor: {
        value: Error,
        enumerable: false,
        writable: true,
        configurable: true
    }
});

if (Object.setPrototypeOf){
    Object.setPrototypeOf(TransportError, Error);
} else {
    TransportError.__proto__ = Error;
}

export default TransportError;
