UNPKG

nach2

Version:

nACH is a highly customizable Node.js module exposing a high & low-level API for generating ACH files for use within the ACH network

10 lines (9 loc) 380 B
'use strict'; // Create a new object, that prototypally inherits from the Error constructor. var nACHError = function(errorObj) { this.name = 'nACHError['+errorObj.name+']' || 'nACHError'; this.message = errorObj.message || 'Uncaught nACHError'; }; nACHError.prototype = Object.create(Error.prototype); nACHError.prototype.constructor = nACHError; module.exports = nACHError;