pub enum AllSourceError {
Show 18 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),
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.
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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
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
Converts to this type from the input type.
Source§impl From<ArrowError> for AllSourceError
impl From<ArrowError> for AllSourceError
Source§fn from(err: ArrowError) -> Self
fn from(err: ArrowError) -> Self
Converts to this type from the input type.
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
Converts to this type from the input type.
Source§impl From<SimdJsonError> for AllSourceError
impl From<SimdJsonError> for AllSourceError
Source§fn from(err: SimdJsonError) -> Self
fn from(err: SimdJsonError) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for AllSourceError
Implement IntoResponse for axum error handling
impl IntoResponse for AllSourceError
Implement IntoResponse for axum error handling
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl !RefUnwindSafe for AllSourceError
impl !UnwindSafe for AllSourceError
impl Freeze for AllSourceError
impl Send for AllSourceError
impl Sync for AllSourceError
impl Unpin for AllSourceError
impl UnsafeUnpin for AllSourceError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more