pub enum GuardedError {
NoRowsAffected,
TooManyRows {
affected: u64,
},
EmptyUpdate,
Db(DbErr),
}Variants§
NoRowsAffected
The conditional UPDATE matched zero rows — the predicate was not satisfied. For counter mutations this is the load-bearing “capacity exhausted” signal.
TooManyRows
The conditional UPDATE matched more than one row — every guarded
update is morally a unique-key-equivalent operation; >1
indicates an index/uniqueness bug.
EmptyUpdate
The builder was executed with no set_* calls — a programming
error. Without this guard, sea-orm’s Updater::exec short-circuits
with rows_affected: 0, which would silently look like a
predicate miss (see Pitfall 1 in 152-RESEARCH.md).
Db(DbErr)
Underlying SeaORM database error.
Trait Implementations§
Source§impl Debug for GuardedError
impl Debug for GuardedError
Source§impl Display for GuardedError
impl Display for GuardedError
Source§impl Error for GuardedError
impl Error for GuardedError
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 GuardedError
impl !UnwindSafe for GuardedError
impl Freeze for GuardedError
impl Send for GuardedError
impl Sync for GuardedError
impl Unpin for GuardedError
impl UnsafeUnpin for GuardedError
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