Module
Galileo SDK exceptions.GalileoLoggerException
Exception raised by GalileoLogger.GalileoAPIError
Base class for Galileo API HTTP errors with actionable messages.BadRequestError
HTTP 400 - The request was malformed or invalid.AuthenticationError
HTTP 401 - Authentication failed.ForbiddenError
HTTP 403 - Insufficient permissions.NotFoundError
HTTP 404 - Resource not found. Arguments-
status_code_or_message(int | str): Either an HTTP status code (int, paired withcontent) or a full message string (str, used on its own). -
content(bytes): Raw response body. Only valid alongside anintstatus code; on the message path it must be omitted.
@overload so type
checkers see the right shape per call site:
NotFoundError(status_code, content)— built from an HTTP 404 response by the generated client. Uses the standard “Resource not found…” message.NotFoundError(message)— built from an SDK-level lookup that has no HTTP response (e.g. resolving a project from env vars). The string is the full message; nocontentargument is accepted.
TypeError instead of producing nonsensical state:
- Mixing shapes:
NotFoundError("msg", b"")/NotFoundError("msg", b"body") - Passing
None:NotFoundError(None) - Passing
bool:NotFoundError(True, b"x")(boolis technically anintsubclass but is rejected explicitly to avoid silent acceptance)