| 1 | import 'package:cw_core/exceptions.dart'; |
| 2 | |
| 3 | class ZanoWalletException implements Exception { |
| 4 | final String message; |
| 5 | |
| 6 | ZanoWalletException(this.message); |
| 7 | @override |
| 8 | String toString() => '${this.runtimeType} (message: $message)'; |
| 9 | } |
| 10 | |
| 11 | class RestoreFromSeedsException extends RestoreFromSeedException { |
| 12 | RestoreFromSeedsException(String message) : super(message); |
| 13 | } |
| 14 | |
| 15 | class TransferException extends ZanoWalletException { |
| 16 | TransferException(String message) : super(message); |
| 17 | } |
| 18 | |
| 19 | class ZanoWalletBusyException extends ZanoWalletException { |
| 20 | ZanoWalletBusyException() : super(''); |
| 21 | } |