pub enum RelationalErrorKind {
Constraint,
Schema,
}Expand description
Typed class of a relational refusal, so callers need not parse its text.
The storage crate’s relational error reports this as the source() of its
constraint and schema variants, which lets
HawDBError::from_storage_error
preserve it across the crate boundary.
Variants§
Constraint
A row violates a declared constraint, such as a duplicate primary or unique key, a NULL in a NOT NULL column, or a missing foreign-key target.
Schema
A statement or value does not fit the relational schema, such as a value of the wrong type for its column.
Implementations§
Trait Implementations§
Source§impl Clone for RelationalErrorKind
impl Clone for RelationalErrorKind
impl Copy for RelationalErrorKind
Source§impl Debug for RelationalErrorKind
impl Debug for RelationalErrorKind
Source§impl Display for RelationalErrorKind
impl Display for RelationalErrorKind
impl Eq for RelationalErrorKind
Source§impl Error for RelationalErrorKind
impl Error for RelationalErrorKind
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 Hash for RelationalErrorKind
impl Hash for RelationalErrorKind
Source§impl PartialEq for RelationalErrorKind
impl PartialEq for RelationalErrorKind
impl StructuralPartialEq for RelationalErrorKind
Auto Trait Implementations§
impl Forget for RelationalErrorKind
impl Freeze for RelationalErrorKind
impl Move for RelationalErrorKind
impl RefUnwindSafe for RelationalErrorKind
impl Send for RelationalErrorKind
impl Sync for RelationalErrorKind
impl Unpin for RelationalErrorKind
impl UnsafeUnpin for RelationalErrorKind
impl UnwindSafe for RelationalErrorKind
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