UNPKG

@soundsright/sdk

Version:

soundsright chain sdk

29 lines (28 loc) 932 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BalanceNotEnoughError = exports.PaymentTimeoutError = exports.PaymentCancelError = void 0; class PaymentCancelError extends Error { constructor() { super(); this.name = 'PaymentCancelError'; this.message = 'Payment cancelled.'; } } exports.PaymentCancelError = PaymentCancelError; class PaymentTimeoutError extends Error { constructor() { super(); this.name = 'PaymentTimeoutError'; this.message = 'Payment timeout.'; } } exports.PaymentTimeoutError = PaymentTimeoutError; class BalanceNotEnoughError extends Error { constructor(balance) { super(); this.balance = balance; this.name = 'BalanceNotEnoughError'; this.message = 'Your balance is not enough.'; } } exports.BalanceNotEnoughError = BalanceNotEnoughError;