#[non_exhaustive]pub enum DodotError {
Fs {
path: PathBuf,
source: Error,
},
SymlinkConflict {
path: PathBuf,
},
ProtectedPath {
path: PathBuf,
},
PackNotFound {
name: String,
},
PackInvalid {
name: String,
reason: String,
},
HandlerNotFound {
name: String,
},
Config(String),
CommandFailed {
command: String,
exit_code: i32,
stderr: String,
},
InvalidPattern {
pattern: String,
reason: String,
},
Other(String),
}Expand description
The single error type for all dodot operations.
Each variant carries enough context to produce a useful error message without needing to inspect the source chain.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fs
SymlinkConflict
ProtectedPath
PackNotFound
PackInvalid
HandlerNotFound
Config(String)
CommandFailed
InvalidPattern
Other(String)
Trait Implementations§
Source§impl Debug for DodotError
impl Debug for DodotError
Source§impl Display for DodotError
impl Display for DodotError
Source§impl Error for DodotError
impl Error for DodotError
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 DodotError
impl !RefUnwindSafe for DodotError
impl Send for DodotError
impl Sync for DodotError
impl Unpin for DodotError
impl UnsafeUnpin for DodotError
impl !UnwindSafe for DodotError
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