{"size": 472, "ext": "js", "max_stars_repo_path": "lib/types/error.js", "max_stars_repo_name": "buggerjs/bugger-v8-client", "max_stars_repo_stars_event_min_datetime": "2015-02-25T16:43:04.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-12T09:34:29.000Z", "max_issues_repo_path": "lib/types/error.js", "max_issues_repo_name": "mengxun1437/bugger-v8-client", "max_issues_repo_issues_event_min_datetime": "2015-08-08T18:10:13.000Z", "max_issues_repo_issues_event_max_datetime": "2016-07-26T21:22:47.000Z", "max_forks_repo_path": "lib/types/error.js", "max_forks_repo_name": "mengxun1437/bugger-v8-client", "max_forks_repo_forks_event_min_datetime": "2015-07-30T06:05:04.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-18T05:52:09.000Z"}
{"max_stars_count": 44, "max_issues_count": 3, "max_forks_count": 16, "avg_line_length": 21.4545454545, "max_line_length": 59, "alphanum_fraction": 0.6673728814}
'use strict';

function RemoteError(objectId, className, description) {
  this.type = 'object';
  this.objectId = objectId;
  this.className = className;
  this.description = description;
}

RemoteError.unmarshal = function(raw, reviver, scopePath) {
  if (scopePath === '?:?') {
    throw new Error('Needs scopePath');
  }
  return new RemoteError(
    'scope-handle:' + scopePath + ':' + raw.handle,
    raw.className,
    raw.text
  );
}

module.exports = RemoteError;
