/// Custom exception for authentication errors class UnauthorizedException implements Exception { final String message; UnauthorizedException(this.message); @override String toString() => message; }