| 1 | import 'package:cw_core/crypto_currency.dart'; |
| 2 | |
| 3 | class TronMnemonicIsIncorrectException implements Exception { |
| 4 | @override |
| 5 | String toString() => |
| 6 | 'Tron mnemonic has incorrect format. Mnemonic should contain 12 or 24 words separated by space.'; |
| 7 | } |
| 8 | |
| 9 | class TronTransactionCreationException implements Exception { |
| 10 | final String exceptionMessage; |
| 11 | |
| 12 | TronTransactionCreationException(CryptoCurrency currency) |
| 13 | : exceptionMessage = 'Wrong balance. Not enough ${currency.title} on your balance.'; |
| 14 | |
| 15 | @override |
| 16 | String toString() => exceptionMessage; |
| 17 | } |