Skip to content

T3HttpError

Base classes

Name Children Inherits
T3Error
pyt3client.errors
Base class for every error pyt3client raises.

⋔ Inheritance diagram

graph TD
  106982417181056["errors.T3HttpError"]
  106982420250208["errors.T3Error"]
  129768776220000["builtins.Exception"]
  129768776220864["builtins.BaseException"]
  129768776280576["builtins.object"]
  106982420250208 --> 106982417181056
  129768776220000 --> 106982420250208
  129768776220864 --> 129768776220000
  129768776280576 --> 129768776220864

🛈 DocStrings

Bases: T3Error

The server answered with an unexpected HTTP status.

Source code in src/pyt3client/errors.py
38
39
40
41
42
43
44
class T3HttpError(T3Error):
    """The server answered with an unexpected HTTP status."""

    def __init__(self, message: str, *, status: int, body: str) -> None:
        super().__init__(f"{message} (HTTP {status}): {body[:500]}")
        self.status = status
        self.body = body

:fa-brands-github: Show source on GitHub