pub enum AllSourceError {
Show 20 variants
EventNotFound(String),
EntityNotFound(String),
TenantAlreadyExists(String),
TenantNotFound(String),
InvalidEvent(String),
InvalidQuery(String),
InvalidInput(String),
StorageError(String),
SerializationError(Error),
ArrowError(String),
IndexError(String),
ValidationError(String),
ConcurrencyError(String),
VersionConflict {
expected: u64,
current: u64,
},
QueueFull(String),
ReadOnly(String),
ArchiveIndexIncomplete {
remaining: usize,
reason: String,
},
ArchiveHydrationRefused {
needed_bytes: u64,
available_bytes: u64,
},
InternalError(String),
SchemaViolation {
event_type: String,
schema_version: u32,
errors: Vec<String>,
},
}Expand description
AllSource error types
Variants§
EventNotFound(String)
EntityNotFound(String)
TenantAlreadyExists(String)
TenantNotFound(String)
InvalidEvent(String)
InvalidQuery(String)
InvalidInput(String)
StorageError(String)
SerializationError(Error)
ArrowError(String)
IndexError(String)
ValidationError(String)
ConcurrencyError(String)
VersionConflict
QueueFull(String)
ReadOnly(String)
The store was opened read-only (e.g. a second process attached to a
data-dir already owned by a live writer). Writes are rejected so the
owner’s WAL is never corrupted. See EventStoreConfig::read_only.
ArchiveIndexIncomplete
A conditional write could not be authorised yet because the tenant’s version manifest does not account for every archive file. The scan persisted what it folded, so retrying resolves strictly fewer files than this attempt did and the condition clears on its own.
reason carries the limit that stopped the fold. Without it an
operator cannot tell which budget dimension a stuck tenant is hitting,
and that is the first thing worth knowing.
ArchiveHydrationRefused
A tenant’s archive could not be made resident because the process has no room for it.
Reported instead of attempting the load, because the alternative is not a slower load: the kernel kills the process, every other tenant’s requests fail with it, and the next attempt starts from the same place. Refusing one tenant’s request is strictly less damage (gh#321).
InternalError(String)
SchemaViolation
Event payload failed validation against a registered schema. The HTTP layer maps this to 422 with a structured body so callers can distinguish schema problems from generic validation failures.
Implementations§
Source§impl AllSourceError
impl AllSourceError
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Returns true for transient errors that may succeed on retry (storage I/O, concurrency conflicts, queue pressure).
Trait Implementations§
Source§impl Debug for AllSourceError
impl Debug for AllSourceError
Source§impl Display for AllSourceError
impl Display for AllSourceError
Source§impl Error for AllSourceError
impl Error for AllSourceError
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()
Source§impl From<AllSourceError> for AuthError
impl From<AllSourceError> for AuthError
Source§fn from(err: AllSourceError) -> Self
fn from(err: AllSourceError) -> Self
Source§impl From<ArrowError> for AllSourceError
impl From<ArrowError> for AllSourceError
Source§fn from(err: ArrowError) -> Self
fn from(err: ArrowError) -> Self
Source§impl From<Error> for AllSourceError
impl From<Error> for AllSourceError
Source§impl From<ParquetError> for AllSourceError
impl From<ParquetError> for AllSourceError
Source§fn from(err: ParquetError) -> Self
fn from(err: ParquetError) -> Self
Source§impl From<SimdJsonError> for AllSourceError
impl From<SimdJsonError> for AllSourceError
Source§fn from(err: SimdJsonError) -> Self
fn from(err: SimdJsonError) -> Self
Source§impl IntoResponse for AllSourceError
Implement IntoResponse for axum error handling
impl IntoResponse for AllSourceError
Implement IntoResponse for axum error handling