Exceptions¶
pyhellofresh.HelloFreshError ¶
Bases: Exception
Base exception for all HelloFresh library errors.
pyhellofresh.HelloFreshAuthenticationError ¶
HelloFreshAuthenticationError(
message: str,
status_code: int | None = None,
error_code: str | None = None,
)
Bases: HelloFreshError
Raised when authentication fails, credentials/token missing/expired, or invalid_grant returned.
Source code in src/pyhellofresh/errors.py
pyhellofresh.HelloFreshResponseError ¶
Bases: HelloFreshError
Raised when the API returns an unexpected status code or malformed JSON.
Source code in src/pyhellofresh/errors.py
pyhellofresh.HelloFreshConnectionError ¶
Bases: HelloFreshError
Raised on network issues or session timeouts.