pub enum LifecycleError {
Show 25 variants
ConfigLoad {
path: PathBuf,
source: Box<dyn Error + Send + Sync>,
},
ConfigParse {
path: PathBuf,
source: Error,
},
PhaseNotFound {
phase: String,
},
NoCommands {
phase: String,
},
CommandFailed {
phase: String,
command: String,
exit_code: i32,
stderr: String,
},
CommandSpawn {
phase: String,
command: String,
source: Error,
},
HookRecursion {
phase: String,
chain: Vec<String>,
},
HookFailed {
phase: String,
hook_phase: String,
source: Box<LifecycleError>,
},
StateLoad {
path: PathBuf,
source: Error,
},
StateParse {
path: PathBuf,
source: Error,
},
StateSave {
path: PathBuf,
source: Error,
},
InvalidCachePath {
path: PathBuf,
},
CacheCreate {
phase: String,
source: Error,
},
FileIo {
path: PathBuf,
source: Error,
},
DirectoryCreate {
path: PathBuf,
source: Error,
},
MakeTomlLoad {
path: PathBuf,
source: Error,
},
MakeTomlParse {
path: PathBuf,
source: Error,
},
WorkspaceNotFound {
workspace: String,
},
WorkspacePath {
workspace: String,
path: PathBuf,
},
ParallelExecution {
workspace: String,
source: Box<LifecycleError>,
},
InvalidEnv {
key: String,
value: String,
},
MutexPoisoned {
phase: String,
},
Io(Error),
DependencyCycle {
phases: String,
},
Other(String),
}Expand description
Main error type for lifecycle operations
Variants§
ConfigLoad
Error loading or parsing make.toml configuration
ConfigParse
Error parsing make.toml TOML format
PhaseNotFound
Phase not found in configuration
NoCommands
Phase has no commands defined
CommandFailed
Command execution failure
CommandSpawn
Command spawn failure
HookRecursion
Hook recursion detected (circular dependency)
HookFailed
Hook execution failed
StateLoad
State file load error
StateParse
State file parse error
StateSave
State file save error
InvalidCachePath
Cache directory error
CacheCreate
Cache creation error
FileIo
File I/O error with context
DirectoryCreate
Directory creation error
MakeTomlLoad
Make.toml load error
MakeTomlParse
Make.toml parse error
WorkspaceNotFound
Workspace not found
WorkspacePath
Workspace path error
ParallelExecution
Parallel execution error
InvalidEnv
Environment variable error
MutexPoisoned
Mutex poisoned error (should never happen in normal operation)
Io(Error)
Generic I/O error
DependencyCycle
Dependency cycle detected
Other(String)
Generic error for compatibility
Implementations§
Source§impl LifecycleError
impl LifecycleError
Sourcepub fn config_load(
path: impl Into<PathBuf>,
source: impl Error + Send + Sync + 'static,
) -> Self
pub fn config_load( path: impl Into<PathBuf>, source: impl Error + Send + Sync + 'static, ) -> Self
Create a config load error
Sourcepub fn config_parse(path: impl Into<PathBuf>, source: Error) -> Self
pub fn config_parse(path: impl Into<PathBuf>, source: Error) -> Self
Create a config parse error
Sourcepub fn phase_not_found(phase: impl Into<String>) -> Self
pub fn phase_not_found(phase: impl Into<String>) -> Self
Create a phase not found error
Sourcepub fn command_failed(
phase: impl Into<String>,
command: impl Into<String>,
exit_code: i32,
stderr: impl Into<String>,
) -> Self
pub fn command_failed( phase: impl Into<String>, command: impl Into<String>, exit_code: i32, stderr: impl Into<String>, ) -> Self
Create a command failed error
Sourcepub fn command_spawn(
phase: impl Into<String>,
command: impl Into<String>,
source: Error,
) -> Self
pub fn command_spawn( phase: impl Into<String>, command: impl Into<String>, source: Error, ) -> Self
Create a command spawn error
Sourcepub fn hook_recursion_with_chain(
phase: impl Into<String>,
chain: Vec<String>,
) -> Self
pub fn hook_recursion_with_chain( phase: impl Into<String>, chain: Vec<String>, ) -> Self
Create a hook recursion error with call chain
Sourcepub fn hook_recursion(phase: impl Into<String>) -> Self
pub fn hook_recursion(phase: impl Into<String>) -> Self
Create a simple hook recursion error (for backward compatibility)
Sourcepub fn state_load(path: impl Into<PathBuf>, source: Error) -> Self
pub fn state_load(path: impl Into<PathBuf>, source: Error) -> Self
Create a state load error
Sourcepub fn state_parse(path: impl Into<PathBuf>, source: Error) -> Self
pub fn state_parse(path: impl Into<PathBuf>, source: Error) -> Self
Create a state parse error
Sourcepub fn state_save(path: impl Into<PathBuf>, source: Error) -> Self
pub fn state_save(path: impl Into<PathBuf>, source: Error) -> Self
Create a state save error
Sourcepub fn invalid_cache_path(path: impl Into<PathBuf>) -> Self
pub fn invalid_cache_path(path: impl Into<PathBuf>) -> Self
Create an invalid cache path error
Sourcepub fn cache_create(phase: impl Into<String>, source: Error) -> Self
pub fn cache_create(phase: impl Into<String>, source: Error) -> Self
Create a cache create error
Sourcepub fn directory_create(path: impl Into<PathBuf>, source: Error) -> Self
pub fn directory_create(path: impl Into<PathBuf>, source: Error) -> Self
Create a directory creation error
Sourcepub fn make_toml_load(path: impl Into<PathBuf>, source: Error) -> Self
pub fn make_toml_load(path: impl Into<PathBuf>, source: Error) -> Self
Create a make.toml load error
Sourcepub fn make_toml_parse(path: impl Into<PathBuf>, source: Error) -> Self
pub fn make_toml_parse(path: impl Into<PathBuf>, source: Error) -> Self
Create a make.toml parse error
Sourcepub fn parallel_execution(
workspace: impl Into<String>,
source: LifecycleError,
) -> Self
pub fn parallel_execution( workspace: impl Into<String>, source: LifecycleError, ) -> Self
Create a parallel execution error
Sourcepub fn dependency_cycle(phases: impl Into<String>) -> Self
pub fn dependency_cycle(phases: impl Into<String>) -> Self
Create a dependency cycle error
Trait Implementations§
Source§impl Debug for LifecycleError
impl Debug for LifecycleError
Source§impl Display for LifecycleError
impl Display for LifecycleError
Source§impl Error for LifecycleError
impl Error for LifecycleError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for LifecycleError
impl !UnwindSafe for LifecycleError
impl Freeze for LifecycleError
impl Send for LifecycleError
impl Sync for LifecycleError
impl Unpin for LifecycleError
impl UnsafeUnpin for LifecycleError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> EvidenceKind for T
impl<T> EvidenceKind for T
default fn kind_label(&self) -> &'static str
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more