UNPKG

blockchain-payments-node

Version:
21 lines (20 loc) 539 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BlockchainPaymentsError = void 0; class BlockchainPaymentsError extends Error { /** * Blockchain Payments Error constructor. */ constructor(message, data) { if (data && data.message) { super(data.message); } else { super(message); } if (data) { this.data = data; } } } exports.BlockchainPaymentsError = BlockchainPaymentsError;