mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-28 14:39:38 +00:00
12 lines
362 B
Dart
12 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;
|
||
|
}
|