UNPKG

cn-pay

Version:

a alipay wechat pay lib

14 lines (11 loc) 353 B
'use strict'; class PayError extends Error { constructor(message, raw) { super(message); this.message = message; this.name = this.constructor.name; this.raw = raw; } } exports.GatewayException = class GatewayException extends PayError {}; exports.InvalidSignException = class InvalidSignException extends PayError {};