modkit_node_info/
error.rs1#[derive(Debug, thiserror::Error)]
3pub enum NodeInfoError {
4 #[error("System information collection failed: {0}")]
5 SysInfoCollectionFailed(String),
6
7 #[error("System capabilities collection failed: {0}")]
8 SysCapCollectionFailed(String),
9
10 #[error("Failed to get hardware UUID: {0}")]
11 HardwareUuidFailed(String),
12
13 #[error("Internal error: {0}")]
14 Internal(String),
15}
16
17impl From<anyhow::Error> for NodeInfoError {
18 fn from(e: anyhow::Error) -> Self {
19 Self::Internal(e.to_string())
20 }
21}