pub enum RepoError {
NotFound,
Conflict,
ValidationError(String),
Unknown(Box<dyn Error + Send + Sync>),
}Expand description
Errors that can occur in repository operations.
Variants§
NotFound
The requested entity was not found.
Conflict
A conflicting entity already exists (e.g. duplicate unique key).
ValidationError(String)
A validation rule was violated.
Unknown(Box<dyn Error + Send + Sync>)
An unexpected error occurred.
Trait Implementations§
Source§impl Error for RepoError
impl Error for RepoError
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 !RefUnwindSafe for RepoError
impl !UnwindSafe for RepoError
impl Freeze for RepoError
impl Send for RepoError
impl Sync for RepoError
impl Unpin for RepoError
impl UnsafeUnpin for RepoError
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