Rindle docs and package mapSkip to main content

RindleError

Enum RindleError 

pub enum RindleError {
    Sqlite {
        op: &'static str,
        source: String,
    },
    UnsupportedValue(String),
    InvalidUtf8 {
        value_type: &'static str,
        source: Utf8Error,
    },
    Storage(String),
    ConsistencyViolation {
        kind: &'static str,
    },
    SchemaViolation(String),
    PushDeadlineExceeded {
        site: &'static str,
    },
    DeltaOverflow {
        max_bytes: usize,
        used: usize,
    },
}

Variants§

§

Sqlite

A SQLite backend operation failed. The underlying error is stringified at the construction boundary (see RindleError::sqlite) so the core crate carries no rusqlite dependency — the SQLite backend lives in rindle-sqlite.

Fields

§op: &'static str
§source: String
§

UnsupportedValue(String)

§

InvalidUtf8

Fields

§value_type: &'static str
§source: Utf8Error
§

Storage(String)

§

ConsistencyViolation

A malformed change stream relative to current state: an ADD of an existing row, a REMOVE/EDIT of an absent row, or an EDIT that mutates a join key. Surfaced when strict change validation is enabled (WS02.2) — and unconditionally by the SQLite batch-delta fold for a duplicate ADD, where the replaced write-then-abort path raised the UNIQUE-constraint error in every build; elsewhere these are debug_assert!-checked internal invariants.

Fields

§kind: &'static str
§

SchemaViolation(String)

An ingested row does not match its schema (wrong width, etc.) — rejected at the source boundary before it can reach the engine’s unchecked column index (WS02.4).

§

PushDeadlineExceeded

A push blew the host-armed wall-clock deadline (FOLLOWER-LAG-SHED §6.6 — the runaway-push bail): a fan-out checkpoint (site names the loop) parked this and stopped iterating. Operator state is torn and must be discarded — the host’s derive-fault path (teardown + rehydrate) is the defined recovery, exactly as for a panic. Never raised unless the host armed Graph::set_push_deadline.

Fields

§site: &'static str
§

DeltaOverflow

A batch delta hit its memory budget (design 306 D4): one transaction’s folded rows would cost more than the derivation may hold, so the batch cannot be derived incrementally. This is a load-shed signal, not a data error — the captured writes are valid; only the derivation gave up. The defined recovery is the shed path (commit the data, tear down the affected pipelines, re-hydrate from the committed state), never failing the write.

max_bytes is the budget that was exceeded, used the delta’s own estimate at the moment it tripped (>= max_bytes; the overshoot is one row). The estimate is documented at rindle_sqlite::DeltaBudget — an accounted upper bound on the delta’s heap, not a measurement of the process.

Fields

§max_bytes: usize
§used: usize

Implementations§

§

impl RindleError

pub fn sqlite(op: &'static str, source: impl Display) -> RindleError

Construct a RindleError::Sqlite from any displayable backend error. The source is stringified here so callers in rindle-sqlite can pass a rusqlite::Error without the core crate depending on rusqlite.

pub fn unsupported_value(message: impl Into<String>) -> RindleError

pub fn schema_violation(message: impl Into<String>) -> RindleError

Trait Implementations§

§

impl Debug for RindleError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for RindleError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for RindleError

§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.