databuild/databuild/cli/error.rs
soaxelbrooke bfec05e065
Some checks are pending
/ setup (push) Waiting to run
Big change
2025-07-13 21:18:15 -07:00

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>;