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