wallaroo.exceptions
Standardized structure for API error responses.
Attributes: code: HTTP status code of the error status: Status message (e.g., "error", "failed") error: Detailed error message source: Source of the error (e.g., "engine", "sidekick") original_response: Original response object for fallback
Create an APIErrorResponse from a requests.Response object. Falls back gracefully if expected fields are missing.
Base exception class for all Wallaroo API errors.
Attributes: code: HTTP status code of the error status: Status message error: Detailed error message source: Source of the error response: Original APIErrorResponse object
Decorator to handle HTTP errors and convert them to appropriate custom errors.
Parameters
- error_class: The specific error class to use for HTTP errors. If None, uses WallarooAPIError.
Raised when inference fails
Raised when inference fails because of connection or timeout errors.