sail.SailError, the base for
every SDK error. flush() raises these on delivery failure; complete() and
fail() warn instead of raising (the terminal event stays buffered for
retry); event() never raises network errors.
VoyageError
Base class for Voyage SDK errors (e.g. timed-out flush, buffer-full while preserving a terminal event). Subclass ofSailError.
VoyageHTTPError
Raised when the Voyage API returns an HTTP error. Subclass ofVoyageError.
| Attribute | Type | Description |
|---|---|---|
status_code | int | HTTP status code. |
response | dict | None | Parsed error response body. |
VoyageNotFoundError
Raised when a Voyage cannot be found for the current API key (HTTP 404). Subclass ofVoyageHTTPError, so it carries status_code and response.
InferenceError
Base class for inference wrapper errors. Raised, for example, whenstream=True is passed (the Sail inference API does not
support streaming) or when no API key is
configured. Subclass of SailError.
InferenceHTTPError
Raised when a Sail inference endpoint returns a non-2xx response. Subclass ofInferenceError.
| Attribute | Type | Description |
|---|---|---|
status_code | int | HTTP status code. |
response | dict | None | Parsed error response body. |