cake_wallet/cw_ethereum/lib/ethereum_exceptions.dart

10 lines
281 B
Dart
Raw Normal View History

2023-03-16 17:24:21 +00:00
class EthereumTransactionCreationException implements Exception {
2023-03-31 18:41:56 +00:00
final String exceptionMessage;
EthereumTransactionCreationException(
{this.exceptionMessage = 'Wrong balance. Not enough Ether on your balance.'});
2023-03-16 17:24:21 +00:00
@override
2023-03-31 18:41:56 +00:00
String toString() => exceptionMessage;
}