42-cent-base
Version:
structural interface for 42-cent adaptors
19 lines (16 loc) • 459 B
JavaScript
var util = require('util');
/**
* thrown when a specific gateway return an error message
* @param {String} message - the error message
* @param {Object} original - the original message specific to the gateway
* @constructor
*/
function GatewayError(message, original) {
Error.call(this, arguments);
this.message = message;
this._original = original;
}
util.inherits(GatewayError, Error);
module.exports = {
GatewayError:GatewayError
};