Skip to main content

solti_exec/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum ExecError {
5    #[error("duplicate runner detected: runner with name '{name}' is already registered")]
6    DuplicateRunner { name: String },
7
8    #[error("invalid runner configuration: {0}")]
9    InvalidRunnerConfig(String),
10
11    #[error("invalid specification: {0}")]
12    InvalidSpec(String),
13
14    #[error("internal error: {0}")]
15    Internal(String),
16
17    #[error("io error: {0}")]
18    Io(#[from] std::io::Error),
19}