pub enum ProjectionError {
DbMissing {
path: PathBuf,
},
SchemaVersion {
expected: u32,
found: u32,
},
QueryFailed {
sql: String,
reason: String,
},
RebuildFailed {
reason: String,
},
Corrupt {
reason: String,
},
FtsIndexMissing,
}Expand description
Errors related to the SQLite projection layer.
Variants§
DbMissing
The projection database file does not exist.
SchemaVersion
The database schema version does not match the expected version.
QueryFailed
A SQL query failed.
Fields
RebuildFailed
Rebuilding the projection from events failed.
Corrupt
The projection database appears corrupt.
FtsIndexMissing
The full-text search index is missing.
Implementations§
Source§impl ProjectionError
impl ProjectionError
Sourcepub const fn error_code(&self) -> &'static str
pub const fn error_code(&self) -> &'static str
Machine-readable error code.
Sourcepub fn suggestion(&self) -> String
pub fn suggestion(&self) -> String
Human-readable suggestion.
Trait Implementations§
Source§impl Debug for ProjectionError
impl Debug for ProjectionError
Source§impl Display for ProjectionError
impl Display for ProjectionError
Source§impl Error for ProjectionError
impl Error for ProjectionError
1.30.0 · 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<ProjectionError> for BonesError
impl From<ProjectionError> for BonesError
Source§fn from(source: ProjectionError) -> Self
fn from(source: ProjectionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProjectionError
impl RefUnwindSafe for ProjectionError
impl Send for ProjectionError
impl Sync for ProjectionError
impl Unpin for ProjectionError
impl UnsafeUnpin for ProjectionError
impl UnwindSafe for ProjectionError
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