mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-26 21:50:27 +00:00
16 lines
553 B
Dart
16 lines
553 B
Dart
|
import 'package:cw_core/crypto_currency.dart';
|
||
|
|
||
|
class TronMnemonicIsIncorrectException implements Exception {
|
||
|
@override
|
||
|
String toString() =>
|
||
|
'Tron mnemonic has incorrect format. Mnemonic should contain 12 or 24 words separated by space.';
|
||
|
}
|
||
|
class TronTransactionCreationException implements Exception {
|
||
|
final String exceptionMessage;
|
||
|
|
||
|
TronTransactionCreationException(CryptoCurrency currency)
|
||
|
: exceptionMessage = 'Wrong balance. Not enough ${currency.title} on your balance.';
|
||
|
|
||
|
@override
|
||
|
String toString() => exceptionMessage;
|
||
|
}
|