Files
hash-wallet/cw_tron/lib/tron_exception.dart
T

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;
}