pub enum RefactorError {
ConceptNotFound(ConceptId),
ConceptAlreadyExists(ConceptId),
SameSourceAndTarget(ConceptId),
HasInboundLinks {
target: ConceptId,
inbound_count: usize,
inbound_concepts: Vec<ConceptId>,
},
SectionNotFound {
concept: ConceptId,
section: String,
},
InvalidConceptId(String),
Io(String),
}Expand description
Error returned when a refactoring operation fails.
Variants§
ConceptNotFound(ConceptId)
The specified source concept was not found in the bundle.
ConceptAlreadyExists(ConceptId)
The destination concept already exists in the bundle.
SameSourceAndTarget(ConceptId)
The source and target concepts are the same.
HasInboundLinks
The concept cannot be deleted because incoming links point to it.
Fields
SectionNotFound
The requested section heading was not found in the concept body.
InvalidConceptId(String)
Invalid concept ID.
Io(String)
Filesystem I/O error.
Trait Implementations§
Source§impl Clone for RefactorError
impl Clone for RefactorError
Source§fn clone(&self) -> RefactorError
fn clone(&self) -> RefactorError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RefactorError
impl Debug for RefactorError
Source§impl Display for RefactorError
impl Display for RefactorError
impl Eq for RefactorError
Source§impl Error for RefactorError
impl Error for RefactorError
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 From<Error> for RefactorError
impl From<Error> for RefactorError
Source§impl PartialEq for RefactorError
impl PartialEq for RefactorError
impl StructuralPartialEq for RefactorError
Auto Trait Implementations§
impl Freeze for RefactorError
impl RefUnwindSafe for RefactorError
impl Send for RefactorError
impl Sync for RefactorError
impl Unpin for RefactorError
impl UnsafeUnpin for RefactorError
impl UnwindSafe for RefactorError
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