Custom exception for handler-specific errors.
| 41 | logger.info("Shared HTTP client closed") |
| 42 | |
| 43 | class HandlerError(Exception): |
| 44 | """Custom exception for handler-specific errors.""" |
| 45 | def __init__(self, message, status_code=500): |
| 46 | super().__init__(message) |
| 47 | self.status_code = status_code |
| 48 | |
| 49 | class ConfigError(HandlerError): |
| 50 | """Error for configuration issues like missing API keys.""" |
no outgoing calls
no test coverage detected