burn_central_runtime/
error.rs1use burn_central_core::{BurnCentralError, experiment::ExperimentTrackerError};
2
3#[derive(thiserror::Error, Debug)]
4pub enum RuntimeError {
5 #[error("Handler '{0}' not found")]
6 HandlerNotFound(String),
7 #[error("Burn Central API call failed: {0}")]
8 BurnCentralError(#[from] BurnCentralError),
9 #[error("Experiment API call failed: {0}")]
10 ExperimentApiFailed(#[from] ExperimentTrackerError),
11 #[error("Handler execution failed: {0}")]
12 HandlerFailed(anyhow::Error),
13 #[error("Ambiguous target '{0}'. Found multiple handlers: {1:?}")]
14 AmbiguousHandlerName(String, Vec<String>),
15 #[error("Invalid arguments: {0}")]
16 InvalidArgs(String),
17}