bitpay-sdk
Version:
Complete version of the NodeJS library for the new cryptographically secure BitPay API
21 lines • 737 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BitPayApiException = void 0;
const BitPayException_1 = require("./BitPayException");
class BitPayApiException extends BitPayException_1.default {
/**
* Construct the BitPayException.
*
* @param message string [optional] The Exception message to throw.
* @param code string [optional] The Exception code to throw.
*/
constructor(message, code) {
super(message);
this.name = 'BITPAY-EXCEPTION';
this.code = 'BITPAY-EXCEPTION';
this.code = code;
}
}
exports.BitPayApiException = BitPayApiException;
exports.default = BitPayApiException;
//# sourceMappingURL=BitPayApiException.js.map