pub enum StoreError {
Sqlite(Error),
Json(Error),
Time(ParseError),
Io(Error),
Core(CoreError),
Validation(String),
RowCountCheckedAddOverflow {
table: &'static str,
pre: u64,
delta: u64,
},
}Expand description
Errors raised by the SQLite store boundary.
Variants§
Sqlite(Error)
SQLite operation failed.
Json(Error)
JSON encoding or decoding failed.
Time(ParseError)
Timestamp parsing failed.
Io(Error)
Filesystem operation failed.
Core(CoreError)
Core type validation failed.
Validation(String)
Store-specific validation failed.
RowCountCheckedAddOverflow
Post-migrate row-count verification refused because
pre.events.checked_add(SCHEMA_V1_TO_V2_EVENT_BOUNDARY_DELTA) overflowed
u64. A pre-migrate count at the saturation boundary is itself a bug;
the verifier refuses honestly rather than masking the overflow with
saturating_add. Surfaces stable invariant
verify.row_counts.checked_add_overflow (RED_TEAM_FINDINGS phase B,
finding B3).
Implementations§
Trait Implementations§
Source§impl Debug for StoreError
impl Debug for StoreError
Source§impl Display for StoreError
impl Display for StoreError
Source§impl Error for StoreError
impl Error for StoreError
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<CoreError> for StoreError
impl From<CoreError> for StoreError
Source§impl From<Error> for StoreError
impl From<Error> for StoreError
Source§impl From<Error> for StoreError
impl From<Error> for StoreError
Source§impl From<Error> for StoreError
impl From<Error> for StoreError
Source§impl From<ParseError> for StoreError
impl From<ParseError> for StoreError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StoreError
impl !RefUnwindSafe for StoreError
impl Send for StoreError
impl Sync for StoreError
impl Unpin for StoreError
impl UnsafeUnpin for StoreError
impl !UnwindSafe for StoreError
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