class ServerException implements Exception {} class CacheException implements Exception {} class AuthenticationException implements Exception { final String message; AuthenticationException(this.message); @override String toString() => 'AuthenticationException: $message'; }