rsiot/components/cmp_os_process/
error.rs1use crate::executor::ComponentError;
2
3#[allow(missing_docs)]
4#[derive(Debug, thiserror::Error)]
5pub enum Error {
6 #[error("CmpOutput: {0}")]
7 CmpOutput(ComponentError),
8
9 #[error("FnOutput: {0}")]
10 FnInput(anyhow::Error),
11
12 #[error("FnOutput: {0}")]
13 FnOutput(anyhow::Error),
14
15 #[error("TokioTaskJoin: {0}")]
16 TokioTaskJoin(#[from] tokio::task::JoinError),
17}
18
19impl From<Error> for ComponentError {
20 fn from(value: Error) -> Self {
21 ComponentError::Execution(value.to_string())
22 }
23}