CI / Check (push) Has been skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Agent (push) Successful in 3m46s
CI / Deploy Dashboard (push) Successful in 2m53s
CI / Deploy Docs (push) Has been skipped
CI / Deploy MCP (push) Successful in 2m2s
17 lines
574 B
Rust
17 lines
574 B
Rust
//! Error type for the dynamic-execution logic.
|
|
|
|
/// Anything that can go wrong provisioning and testing a soft-PLC. The compliance
|
|
/// agent maps this into its own `AgentError` at the call boundary.
|
|
#[derive(thiserror::Error, Debug)]
|
|
pub enum ExecError {
|
|
/// An HTTP request (to OpenPLC) failed.
|
|
#[error("HTTP error: {0}")]
|
|
Http(#[from] reqwest::Error),
|
|
/// A local IO / process error (e.g. invoking `docker`).
|
|
#[error("IO error: {0}")]
|
|
Io(#[from] std::io::Error),
|
|
/// Any other failure, with a message.
|
|
#[error("{0}")]
|
|
Other(String),
|
|
}
|