- Fix error popup showing multiple times (#1987)

- Improve/generalize error handling
This commit is contained in:
Omar Hatem 2025-01-30 04:29:55 +02:00 committed by GitHub
parent f90b171d9b
commit 1c07048808
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 79 additions and 30 deletions

View file

@ -1,3 +1,5 @@
import 'package:cw_core/exceptions.dart';
class ZanoWalletException implements Exception {
final String message;
@ -6,7 +8,7 @@ class ZanoWalletException implements Exception {
String toString() => '${this.runtimeType} (message: $message)';
}
class RestoreFromSeedsException extends ZanoWalletException {
class RestoreFromSeedsException extends RestoreFromSeedException {
RestoreFromSeedsException(String message) : super(message);
}