camel_component_exec/
error.rs1#[derive(Debug, thiserror::Error)]
10#[non_exhaustive]
11pub enum ExecError {
12 #[error("executable/profile not allowlisted (fail-closed): {requested:?}")]
13 NotAllowlisted { requested: String },
14
15 #[error("arg policy denied {arg:?}: {reason}")]
16 ArgPolicyDenied { arg: String, reason: String },
17
18 #[error("shell executable rejected without allow_shell: {executable:?}")]
19 ShellRejected { executable: String },
20
21 #[error("working dir escapes workspace root: {path:?}")]
22 InvalidWorkDir { path: String },
23
24 #[error("stdin exceeds cap ({size} > {max} bytes)")]
25 StdinTooLarge { size: usize, max: usize },
26
27 #[error("malformed CamelExecArgs header: {0}")]
28 InvalidArgs(String),
29
30 #[error("spawn failed: {0}")]
31 Spawn(#[from] std::io::Error),
32}