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