CakeWallet/cw_zano/lib/zano_wallet_exceptions.dart
Omar Hatem 1c07048808
- Fix error popup showing multiple times (#1987)
- Improve/generalize error handling
2025-01-30 04:29:55 +02:00

21 lines
No EOL
578 B
Dart

import 'package:cw_core/exceptions.dart';
class ZanoWalletException implements Exception {
final String message;
ZanoWalletException(this.message);
@override
String toString() => '${this.runtimeType} (message: $message)';
}
class RestoreFromSeedsException extends RestoreFromSeedException {
RestoreFromSeedsException(String message) : super(message);
}
class TransferException extends ZanoWalletException {
TransferException(String message): super(message);
}
class ZanoWalletBusyException extends ZanoWalletException {
ZanoWalletBusyException(): super('');
}