kmobile/lib/core/errors/exceptions.dart
2025-06-02 10:29:32 +05:30

24 lines
466 B
Dart

class AppException implements Exception {
final String message;
AppException(this.message);
@override
String toString() => message;
}
class NetworkException extends AppException {
NetworkException(super.message);
}
class AuthException implements Exception{
final String message;
AuthException(this.message);
@override
String toString() => message;
}
class UnexpectedException extends AppException {
UnexpectedException(super.message);
}