cake_wallet/cw_bitcoin/lib/bitcoin_transaction_wrong_balance_exception.dart

10 lines
310 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() => 'Wrong balance. Not enough ${currency.title} on your balance.';
}