exceptions
pixel_client.exceptions ¶
PixelBadRequestError ¶
Bases: Exception
Exception raised when a bad request is made to the Pixel API.
Source code in src/pixel_client/exceptions.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | |
message
instance-attribute
¶
message = f"Bad request {self.status_code} for {self.method} {self.url} (request ID: {request_id})"
__init__ ¶
__init__(
response_json: dict,
status_code: int,
method: str,
url: str,
request_id: str | None = None,
body: str | None = None,
)
Source code in src/pixel_client/exceptions.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | |
PixelUploadJobError ¶
Bases: Exception
Exception raised when an upload job fails.
Source code in src/pixel_client/exceptions.py
30 31 32 33 34 35 36 37 38 39 40 41 42 | |
__init__ ¶
Source code in src/pixel_client/exceptions.py
35 36 37 38 39 40 41 42 | |
PixelMultipleUploadJobError ¶
Bases: Exception
Exception raised when multiple upload jobs fail.
Source code in src/pixel_client/exceptions.py
45 46 47 48 49 50 51 52 53 54 | |
__init__ ¶
__init__(errors: list[PixelUploadJobError])
Source code in src/pixel_client/exceptions.py
50 51 52 53 54 | |