12345678910111213 |
- from http import HTTPStatus
- from typing import Any
- __all__ = ["ApiException"]
- class ApiException(ValueError):
- def __init__(self, obj: Any, status: HTTPStatus):
- self.status = status
- super().__init__(obj)
- def __str__(self):
- return f"{self.status}: {super().__str__()}"
|