Exceptions¶
exceptions ¶
Exception hierarchy for yente-client.
All client-raised errors inherit from YenteError so callers can catch
broadly when they don't care which sub-case fired. pydantic.ValidationError
is raised separately for input-shape mistakes (unknown kwargs on a per-schema
entity class, etc.).
APIError ¶
Bases: YenteError
Non-2xx response from the server.
Attributes:
| Name | Type | Description |
|---|---|---|
status_code |
HTTP status as returned. |
|
detail |
server-supplied error message ( |
|
response |
the raw |
AuthenticationError ¶
BadRequestError ¶
ConfigurationError ¶
Bases: YenteError
Bad client configuration (invalid app_name, malformed base_url…).
NotFoundError ¶
RateLimitError ¶
RateLimitError(
status_code: int,
detail: str,
retry_after: float | None = None,
response: Any | None = None,
)
Bases: APIError
HTTP 429 — rate limit exceeded.
Carries retry_after (seconds) when the server provided the header.
Automatic retries are not built into the client; callers handle backoff.
ServerError ¶
TransportError ¶
Bases: YenteError
Network-level failure: timeout, connection refused, DNS, TLS handshake.
YenteError ¶
Bases: Exception
Base for every error raised by this client.