#[non_exhaustive]pub enum ObjectLogError {
InvalidObjectKey(String),
StorageUnavailable(String),
RangeOutOfBounds(String),
MissingObject(String),
InvalidBatch(String),
Sequencer(String),
Fenced {
partition: String,
epoch: u64,
current: u64,
},
HeadRejected {
expected: i64,
current: i64,
},
BudgetExceeded(String),
ReadLimitExceeded {
actual: usize,
limit: usize,
},
InvalidConfig(String),
}Expand description
Errors returned by the object-log engine, storage adapters, and sequencer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidObjectKey(String)
An object key was empty or contained a .. path component or \0.
The storage layer was unreachable or returned an I/O error.
RangeOutOfBounds(String)
A get_range request named a byte range outside the object, or inverted.
MissingObject(String)
The index referenced an object that is no longer present in storage.
InvalidBatch(String)
A produce batch was malformed (e.g. empty, or below the configured floor).
Sequencer(String)
The sequencer rejected or failed to process a commit/lookup.
Fenced
The partition’s fence epoch moved past the write’s epoch, so the write was not committed. Retrying at the same epoch cannot succeed.
Produced by a sequencer’s rejection_error
(for example ManifestSequencer); the engine
never constructs it.
Fields
HeadRejected
A conditional batch was definitely not indexed at its expected log head.
Fields
BudgetExceeded(String)
Durable-ops budget admission failed (BudgetMode::FailClosed or timed out).
ReadLimitExceeded
An authenticated native payload exceeds the caller’s read limit.
Fields
InvalidConfig(String)
Invalid engine or budget configuration.
Trait Implementations§
Source§impl Clone for ObjectLogError
impl Clone for ObjectLogError
Source§impl Debug for ObjectLogError
impl Debug for ObjectLogError
Source§impl Display for ObjectLogError
impl Display for ObjectLogError
impl Eq for ObjectLogError
Source§impl Error for ObjectLogError
impl Error for ObjectLogError
1.30.0 · 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()