25 lines
No EOL
644 B
Rust
25 lines
No EOL
644 B
Rust
use crate::event_log::BuildEventLogError;
|
|
use crate::orchestration::OrchestrationError;
|
|
|
|
#[derive(Debug, thiserror::Error)]
|
|
pub enum CliError {
|
|
#[error("Event log error: {0}")]
|
|
EventLog(#[from] BuildEventLogError),
|
|
|
|
#[error("Orchestration error: {0}")]
|
|
Orchestration(#[from] OrchestrationError),
|
|
|
|
#[error("Analysis error: {0}")]
|
|
Analysis(String),
|
|
|
|
#[error("Execution error: {0}")]
|
|
Execution(String),
|
|
|
|
#[error("Environment error: {0}")]
|
|
Environment(String),
|
|
|
|
#[error("Invalid arguments: {0}")]
|
|
InvalidArguments(String),
|
|
}
|
|
|
|
pub type Result<T> = std::result::Result<T, CliError>; |