pub enum OrbokError {
Show 13 variants
Database(String),
MigrationFailed {
version: i64,
message: String,
},
PathOutsideSources,
PathCanonicalization(String),
PolicyBlocked(&'static str),
SourceNotFound,
FileNotFound,
CleanupWouldTouchPersistentData,
Cache(String),
Extraction {
category: ErrorCategory,
message: String,
},
InvalidCatalogValue {
column: &'static str,
value: String,
},
Io(Error),
Canceled,
}Expand description
Top-level orbok error.
Messages intentionally avoid document contents; paths appear only where required for actionability (NFR-014 log hygiene).
Variants§
Database(String)
MigrationFailed
PathOutsideSources
PathCanonicalization(String)
PolicyBlocked(&'static str)
SourceNotFound
FileNotFound
CleanupWouldTouchPersistentData
Cache(String)
Extraction
InvalidCatalogValue
Io(Error)
Canceled
Trait Implementations§
Source§impl Debug for OrbokError
impl Debug for OrbokError
Source§impl Display for OrbokError
impl Display for OrbokError
Source§impl Error for OrbokError
impl Error for OrbokError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for OrbokError
impl !UnwindSafe for OrbokError
impl Freeze for OrbokError
impl Send for OrbokError
impl Sync for OrbokError
impl Unpin for OrbokError
impl UnsafeUnpin for OrbokError
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