cake_wallet/cw_ethereum/lib/ethereum_exceptions.dart
2023-07-22 05:59:38 +03:00

11 lines
362 B
Dart

import 'package:cw_core/crypto_currency.dart';
class EthereumTransactionCreationException implements Exception {
final String exceptionMessage;
EthereumTransactionCreationException(CryptoCurrency currency) :
this.exceptionMessage = 'Wrong balance. Not enough ${currency.title} on your balance.';
@override
String toString() => exceptionMessage;
}