pub enum DejaDbError {
NotFound(Hash),
Format(String),
Validation(String),
Serialization(String),
ToolRenderUnsupported(String),
Storage(String),
SupersessionConflict(Hash),
CryptoError(String),
AccumulateRetryExhausted,
AccumulateInternal(String),
AccumulateBackpressureRejected,
Internal(String),
}Expand description
All errors in dejadb-core.
Variants§
NotFound(Hash)
Format(String)
Validation(String)
Serialization(String)
ToolRenderUnsupported(String)
Storage(String)
SupersessionConflict(Hash)
CryptoError(String)
AccumulateRetryExhausted
AccumulateInternal(String)
AccumulateBackpressureRejected
Internal(String)
Implementations§
Source§impl DejaDbError
impl DejaDbError
Sourcepub fn code(&self) -> &'static str
pub fn code(&self) -> &'static str
Stable machine-readable error code in DOMAIN-Ennn form (see the
repo-root ERROR_CODES.md registry). Every Display string begins
with this code, so a user who reports the leading token points us at
the exact variant and subsystem. Codes are append-only debugging
handles — never renumber or reuse an existing one.
Trait Implementations§
Source§impl Debug for DejaDbError
impl Debug for DejaDbError
Source§impl Display for DejaDbError
impl Display for DejaDbError
Source§impl Error for DejaDbError
impl Error for DejaDbError
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()
Auto Trait Implementations§
impl Freeze for DejaDbError
impl RefUnwindSafe for DejaDbError
impl Send for DejaDbError
impl Sync for DejaDbError
impl Unpin for DejaDbError
impl UnsafeUnpin for DejaDbError
impl UnwindSafe for DejaDbError
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