Enum ReplicaError
pub enum ReplicaError {
Sqlite {
op: &'static str,
source: Error,
},
Rindle(RindleError),
Build(BuildError),
UnsupportedColumnType {
table: String,
column: String,
},
Open(String),
Schema(String),
ReadRejected(String),
Capture(String),
Mutation(String),
NotThreadsafe,
Closed,
}Expand description
Variants§
Sqlite
A SQLite call failed; op names the operation for context.
Rindle(RindleError)
An engine runtime error (push/hydrate/storage/consistency), surfaced verbatim.
Build(BuildError)
The query could not be lowered — surfaced synchronously at registration.
UnsupportedColumnType
A column type the engine cannot represent (e.g. BLOB — OwnedValue has no
Blob variant). Rejected at register_table/query rather than silently coerced.
Open(String)
Opening / configuring the database failed in a way that isn’t a raw SQLite
error (e.g. journal_mode did not become wal2 — typically a non-file path).
Schema(String)
Table schema discovery failed (e.g. the table doesn’t exist, or has no primary key, which the engine requires for row identity).
ReadRejected(String)
A raw read (ReadConn::read_sql) tripped a guardrail —
it returned more rows than the cap. (A time-budget overrun surfaces as an interrupted
Sqlite instead.)
Capture(String)
A row change could not be captured from the preupdate hook (e.g. invalid UTF-8 in a TEXT/BLOB cell, or a column-count mismatch). Surfaced at commit.
Mutation(String)
A client-mutation push violated the protocol (a mid gap, client-mutations
support not enabled, …). Distinct from a rejected mutation, which is a normal
outcome reported in MutationOutcome::rejected.
NotThreadsafe
sqlite3_threadsafe() returned 0 — the build is single-threaded-unsafe.
Closed
The replica has been closed / a worker is gone.
Implementations§
§impl ReplicaError
impl ReplicaError
pub fn sqlite(op: &'static str, source: Error) -> ReplicaError
Trait Implementations§
§impl Debug for ReplicaError
impl Debug for ReplicaError
§impl Display for ReplicaError
impl Display for ReplicaError
§impl Error for ReplicaError
impl Error for ReplicaError
§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()
§impl From<BuildError> for ReplicaError
impl From<BuildError> for ReplicaError
§fn from(e: BuildError) -> ReplicaError
fn from(e: BuildError) -> ReplicaError
§impl From<CdcError> for ReplicaError
impl From<CdcError> for ReplicaError
§fn from(e: CdcError) -> ReplicaError
fn from(e: CdcError) -> ReplicaError
Source§impl From<ReplicaError> for DdlMigrationError
impl From<ReplicaError> for DdlMigrationError
Source§fn from(error: ReplicaError) -> DdlMigrationError
fn from(error: ReplicaError) -> DdlMigrationError
Source§impl From<ReplicaError> for MutationReject
impl From<ReplicaError> for MutationReject
Source§fn from(e: ReplicaError) -> MutationReject
fn from(e: ReplicaError) -> MutationReject
§impl From<ReplicaError> for WritePlaneError
Classify failures from the WAL2 replica backend at the shared boundary. Keeping this next to
WritePlaneError means every standalone adapter uses the same public error semantics.
impl From<ReplicaError> for WritePlaneError
Classify failures from the WAL2 replica backend at the shared boundary. Keeping this next to
WritePlaneError means every standalone adapter uses the same public error semantics.