pub enum FusilladeError {
Show 14 variants
RequestNotFound(RequestId),
RequestStateConflict {
id: RequestId,
current_state: String,
expected: &'static str,
},
RequestCancelled(RequestId),
Shutdown,
InvalidState(RequestId, String, String),
ValidationError(String),
HttpClient(String),
HttpRequestBuilder(String),
HttpClientTimeout(String),
FirstChunkTimeout(String),
TokensTimeout(String),
BodyTimeout(String),
Serialization(Error),
Other(Error),
}Expand description
Main error type for the batching system.
Variants§
RequestNotFound(RequestId)
Request not found
RequestStateConflict
Request exists but is not in the expected state for the requested operation (e.g., completing an already-completed or failed request).
Distinct from [RequestNotFound] so callers can be properly idempotent
against concurrent writers — e.g. a complete-then-complete race where
the second caller should treat “already completed” as success rather
than synthesizing a new row.
RequestCancelled(RequestId)
Cancelled request
Shutdown
Daemon is shutting down
InvalidState(RequestId, String, String)
Request is in an invalid state for the requested operation
ValidationError(String)
Validation error (e.g., invalid file format, missing required fields)
HttpClient(String)
HTTP client error.
HttpRequestBuilder(String)
HTTP request builder error.
HttpClientTimeout(String)
HTTP client timeout.
FirstChunkTimeout(String)
Timed out waiting for response headers + first body chunk (time-to-first-token). Only used for streaming requests. Handles servers (like vLLM) that return headers immediately but queue the request before producing tokens.
TokensTimeout(String)
Timed out waiting for the next chunk of response body tokens (streaming only)
BodyTimeout(String)
Timed out waiting for the entire response body to complete (streaming only). Fires when the total body read exceeds body_timeout.
Serialization(Error)
Serialization/deserialization error
Other(Error)
General error from anyhow
Trait Implementations§
Source§impl Debug for FusilladeError
impl Debug for FusilladeError
Source§impl Display for FusilladeError
impl Display for FusilladeError
Source§impl Error for FusilladeError
impl Error for FusilladeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()