pub enum HortoError {
Message(String),
RootRequired,
UnknownStep(String),
NotInPipeline {
step: String,
kind: String,
},
MissingDependency(String, String),
EmbedMissing(String),
CommandFailed {
program: String,
detail: String,
},
Io(Error),
Json(Error),
}Expand description
Failures from steps, kits, resume, and host ops.
Variants§
Message(String)
Free-form message when no tighter variant fits yet.
RootRequired
Apply mode needs root (sudo).
UnknownStep(String)
Step id is not registered.
NotInPipeline
Step id exists but is not in the selected Full/Minimal pipeline.
MissingDependency(String, String)
Required dependency steps are incomplete.
EmbedMissing(String)
Embedded asset path missing from the binary.
CommandFailed
External process failed (apt, systemctl, docker, iptables, …).
Io(Error)
Filesystem IO.
Json(Error)
JSON encode/decode.
Implementations§
Trait Implementations§
Source§impl Debug for HortoError
impl Debug for HortoError
Source§impl Display for HortoError
impl Display for HortoError
Source§impl Error for HortoError
impl Error for HortoError
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 HortoError
impl From<Error> for HortoError
Auto Trait Implementations§
impl !RefUnwindSafe for HortoError
impl !UnwindSafe for HortoError
impl Freeze for HortoError
impl Send for HortoError
impl Sync for HortoError
impl Unpin for HortoError
impl UnsafeUnpin for HortoError
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