#[non_exhaustive]pub enum RequestError {
Spi(SpiError),
Rewrite(RewriteError),
Sink(SinkError),
StaleEpoch {
stamped: Epoch,
},
Internal {
reason: &'static str,
},
Cursor {
reason: &'static str,
},
PayloadTooLarge {
reason: &'static str,
},
}Expand description
A failure anywhere on the request path.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Spi(SpiError)
Routing (partition resolution / placement) failed.
Rewrite(RewriteError)
A body transform failed (malformed document, reserved-field collision).
Sink(SinkError)
The write could not be delivered or was rejected upstream.
StaleEpoch
The write resolved against a placement epoch no longer current for a
migrating partition: the migration write gate held it (docs/06 §2).
Retryable, the client re-resolves against the new placement.
Internal
An internal invariant was violated, a bug, not a client or upstream fault. Carries a static reason (never tenant data) for the operator/LLM.
Cursor
A scroll/PIT cursor could not be resolved to its pinned cluster, its
affinity envelope is absent, malformed, or fails its signature. The client
must re-issue the originating search (docs/03 §6).
PayloadTooLarge
The request body exceeded a size cap (e.g. a single _bulk line over the
per-op limit). A client error (413), not an internal fault: the client
must split or shrink the body.
Implementations§
Trait Implementations§
Source§impl Debug for RequestError
impl Debug for RequestError
Source§impl Display for RequestError
impl Display for RequestError
Source§impl Error for RequestError
impl Error for RequestError
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()