cake_wallet/lib/bitcoin/bitcoin_transaction_wrong_balance_exception.dart

10 lines
323 B
Dart
Raw Normal View History

import 'package:cake_wallet/entities/crypto_currency.dart';
2020-08-25 16:32:40 +00:00
class BitcoinTransactionWrongBalanceException implements Exception {
BitcoinTransactionWrongBalanceException(this.currency);
final CryptoCurrency currency;
2020-08-25 16:32:40 +00:00
@override
String toString() => 'Wrong balance. Not enough ${currency.title} on your balance.';
2020-08-25 16:32:40 +00:00
}