cake_wallet/cw_bitcoin/lib/bitcoin_transaction_wrong_balance_exception.dart

10 lines
311 B
Dart
Raw Normal View History

import 'package:cw_core/crypto_currency.dart';
class BitcoinTransactionWrongBalanceException implements Exception {
BitcoinTransactionWrongBalanceException(this.currency);
final CryptoCurrency currency;
@override
String toString() => 'You do not have enough ${currency.title} to send this amount.';
}