Method
__init__
(
self,
mapping: dict[int, type[HTTPException]] | None = None,
extra: dict[int, type[HTTPException]] | None = None,
)
Source from the content-addressed store, hash-verified
| 863 | """ |
| 864 | |
| 865 | def __init__( |
| 866 | self, |
| 867 | mapping: dict[int, type[HTTPException]] | None = None, |
| 868 | extra: dict[int, type[HTTPException]] | None = None, |
| 869 | ) -> None: |
| 870 | if mapping is None: |
| 871 | mapping = default_exceptions |
| 872 | self.mapping = dict(mapping) |
| 873 | if extra is not None: |
| 874 | self.mapping.update(extra) |
| 875 | |
| 876 | def __call__( |
| 877 | self, code: int | SansIOResponse, *args: t.Any, **kwargs: t.Any |
Tested by
no test coverage detected