Custom exception for handler-specific errors.
| 25 | await http_client.shutdown() |
| 26 | |
| 27 | class HandlerError(Exception): |
| 28 | """Custom exception for handler-specific errors.""" |
| 29 | def __init__(self, message, status_code=500): |
| 30 | super().__init__(message) |
| 31 | self.status_code = status_code |
| 32 | |
| 33 | class ConfigError(HandlerError): |
| 34 | """Error for configuration issues like missing API keys.""" |
no outgoing calls
no test coverage detected