mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
18 lines
555 B
Dart
18 lines
555 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;
|
|
}
|