pub enum SqliteError {
Show 17 variants
RequestReadStopped(StorageError),
Rusqlite(Error),
InvalidData(String),
InheritedWriterTransaction,
WriterSettlementUnknown,
WriterPoisoned,
WriterPoolCheckoutTimeout {
timeout: Duration,
},
CapacityFloor {
volume: String,
available_bytes: u64,
floor_bytes: u64,
required_headroom_bytes: u64,
},
CapacityUnavailable {
phase: CapacityUnavailablePhase,
message: String,
},
VolumeLeaseReentry {
holder_site: String,
requester_site: String,
},
WalCeilingOffsetOverflow {
bytes: u64,
},
WalCeilingUnsupported {
bytes: u64,
backend_kind: &'static str,
},
WalCeilingBelowMinimum {
bytes: u64,
page_size: u64,
minimum_bytes: u64,
},
WalCapacityUnavailable {
bytes: u64,
capability: &'static str,
},
InvalidConfig(String),
Io(Error),
Migration {
version: u32,
error: String,
},
}Expand description
Errors produced by the SQLite storage backend.
Variants§
RequestReadStopped(StorageError)
A request-scoped read or store acquisition stopped, or read cleanup failed.
Rusqlite(Error)
Underlying rusqlite driver error.
InvalidData(String)
Data invariant violation (corrupt row, unexpected schema state).
InheritedWriterTransaction
A pooled connection contained a transaction from an earlier owner. Its prior side effects cannot be attributed to the new request.
WriterSettlementUnknown
The writer could not prove transaction settlement before retirement.
WriterPoisoned
An earlier write on this database could not prove its settlement, so every later write is refused before it starts. Only the write whose settlement failed reports an unknown outcome; this one never ran.
WriterPoolCheckoutTimeout
The process-local writer mutex was not acquired within the pool’s configured finite checkout deadline. This stage happens before SQLite executes, so callers must not conflate it with SQLite busy/locked or checkpoint starvation.
The display text intentionally retains the historical InvalidData
prefix for compatibility while the variant supplies stable structural
classification (ADR-135 F6).
CapacityFloor
A file-backed writer was refused before SQLite began the operation because the volume’s free space had reached its configured reserve.
A new logical write could not resolve its volume, acquire its lease, or sample available space.
VolumeLeaseReentry
The thread asking for a volume’s write lease already holds it, so waiting could never succeed. This is a nested write, not lock contention, and it is refused at once instead of at the deadline.
WalCeilingOffsetOverflow
A configured WAL ceiling cannot be represented by SQLite’s signed file-offset arithmetic.
WalCeilingUnsupported
A WAL ceiling was enabled for a backend that cannot produce a WAL.
WalCeilingBelowMinimum
One committed WAL frame cannot fit, even immediately after reset.
A valid enabled policy cannot run until its WAL I/O limiter exists.
InvalidConfig(String)
A PoolConfig value violated a validated invariant at configuration
load time (e.g. ADR-131 Decision 2’s write_admission_deadline_ms
range). Fires before any connection is opened, and is never silently
clamped into range.
Io(Error)
Filesystem I/O error.
Migration
A versioned migration failed to apply.
Implementations§
Source§impl SqliteError
impl SqliteError
Sourcepub fn wal_capacity_stage(&self) -> Option<&'static str>
pub fn wal_capacity_stage(&self) -> Option<&'static str>
Stable structured stage for an ADR-194 WAL-capacity failure.
Trait Implementations§
Source§impl Debug for SqliteError
impl Debug for SqliteError
Source§impl Display for SqliteError
impl Display for SqliteError
Source§impl Error for SqliteError
impl Error for SqliteError
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<Error> for SqliteError
impl From<Error> for SqliteError
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteError
impl !UnwindSafe for SqliteError
impl Freeze for SqliteError
impl Send for SqliteError
impl Sync for SqliteError
impl Unpin for SqliteError
impl UnsafeUnpin for SqliteError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more