pub struct DataIntegrityError(/* private fields */);Expand description
Typed marker for a data-integrity failure (exit 3).
Mirrors crate::source::StatementDurationTimeout: the type, not the
wording, carries the classification. classify_exit downcasts it through
the anyhow chain, so a reworded human message never silently flips the exit
code. Constructed at the data-integrity bail sites (quality-gate failure,
duplicate-guard) wrapping the existing message verbatim — Display
reproduces the original text unchanged, so operator-facing output is
identical.
Implementations§
Trait Implementations§
Source§impl Debug for DataIntegrityError
impl Debug for DataIntegrityError
Source§impl Display for DataIntegrityError
impl Display for DataIntegrityError
Source§impl Error for DataIntegrityError
impl Error for DataIntegrityError
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 DataIntegrityError
impl RefUnwindSafe for DataIntegrityError
impl Send for DataIntegrityError
impl Sync for DataIntegrityError
impl Unpin for DataIntegrityError
impl UnsafeUnpin for DataIntegrityError
impl UnwindSafe for DataIntegrityError
Blanket Implementations§
impl<T> Allocation for T
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