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); }