cake_wallet/cw_bitcoin/lib/bitcoin_transaction_wrong_balance_exception.dart
Justin Ehrenhofer 6c0401089a Improve sending error messages
Ideally these should be moved to the translation strings
2023-04-07 08:54:39 -05:00

10 lines
No EOL
311 B
Dart

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.';
}