{"size": 401, "ext": "js", "max_stars_repo_path": "exceptions/Exception.js", "max_stars_repo_name": "EdouardCourty/mySelfbot", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "exceptions/Exception.js", "max_issues_repo_name": "EdouardCourty/mySelfbot", "max_issues_repo_issues_event_min_datetime": "2020-04-01T19:53:41.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-11T00:19:16.000Z", "max_forks_repo_path": "exceptions/Exception.js", "max_forks_repo_name": "EdouardCourty/mySelfbot", "max_forks_repo_forks_event_min_datetime": "2020-11-14T17:29:45.000Z", "max_forks_repo_forks_event_max_datetime": "2020-11-14T17:29:45.000Z"}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": 1, "avg_line_length": 16.7083333333, "max_line_length": 57, "alphanum_fraction": 0.6159600998}
class Exception extends Error
{
  #errorMessage = "Unable to add this user as a friend.";

  /**
   * @param {String|null} customMessage
   */
  constructor(customMessage) {
    super(customMessage);
    if (customMessage) {
      this.#errorMessage += `\n${customMessage}`
    }
  }

  /**
   * @return {string}
   */
  getMessage() {
    return this.#errorMessage
  }
}

module.exports = Exception;
