<commit_before>
function ResponseError (code, msg) {
  Error.call(this);
  Error.captureStackTrace(this, arguments.callee);
  this.code = code;
  this.message = msg;
  this.name = 'FirstDataResponseError';
};

ResponseError.prototype.__proto__ = Error.prototype;


function BankError (code, details) {
  Error.call(this);
  Error.captureStackTrace(this, arguments.callee);
  this.code = code;
  this.type = details.type;
  this.action = details.action;
  this.message = details.description;
  this.name = 'BankError: ' + details.name;
}

BankError.prototype.__proto__ = Error.prototype;

exports.ResponseError = ResponseError;
exports.BankError = BankError;<commit_msg>changed fn signature for custom errors<commit_after>
function ResponseError (details) {
  Error.call(this);
  Error.captureStackTrace(this, arguments.callee);
  this.code = details.code;
  this.message = details.message;
  this.name = 'FirstDataResponseError';
};

ResponseError.prototype.__proto__ = Error.prototype;


function BankError (details) {
  Error.call(this);
  Error.captureStackTrace(this, arguments.callee);
  this.code = details.code;
  this.type = details.type;
  this.action = details.action;
  this.message = details.description;
  this.name = 'FirstDataBankResponseError: ' + details.name;
}

BankError.prototype.__proto__ = Error.prototype;

exports.ResponseError = ResponseError;
exports.BankError = BankError;

{'fraction_non_alphanumeric': 0.1206281227694504, 'fraction_numerical': 0.0, 'mean_word_length': 5.043103448275862, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4636847', 'n_tokens_mistral': 426, 'n_tokens_neox': 422, 'n_words': 82}