pub enum HierarchyError {
NotAGoal {
item_id: String,
actual_kind: String,
},
ItemNotFound(String),
CycleDetected {
item_id: String,
proposed_parent: String,
},
Db(Error),
}Expand description
Errors that can occur in hierarchy operations.
Variants§
NotAGoal
The target parent item is not of kind goal. Reparenting to non-goals
is rejected.
ItemNotFound(String)
The requested item does not exist (or is soft-deleted).
CycleDetected
The reparenting would create a cycle (the proposed parent is a descendant of the item being moved).
Db(Error)
An underlying database error.
Trait Implementations§
Source§impl Debug for HierarchyError
impl Debug for HierarchyError
Source§impl Display for HierarchyError
impl Display for HierarchyError
Source§impl Error for HierarchyError
impl Error for HierarchyError
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 HierarchyError
impl RefUnwindSafe for HierarchyError
impl Send for HierarchyError
impl Sync for HierarchyError
impl Unpin for HierarchyError
impl UnsafeUnpin for HierarchyError
impl UnwindSafe for HierarchyError
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