1#[derive(Debug, thiserror::Error)]
2pub enum NetwatchError {
3 #[error("Device not found: {0}")]
4 DeviceNotFound(String),
5
6 #[error("Permission denied: {0}")]
7 PermissionDenied(String),
8
9 #[error("IO error: {0}")]
10 Io(#[from] std::io::Error),
11
12 #[error("Parse error: {0}")]
13 Parse(String),
14
15 #[error("Configuration error: {0}")]
16 Config(String),
17
18 #[error("Platform error: {0}")]
19 Platform(String),
20
21 #[error("Security error: {0}")]
22 Security(String),
23}
24
25pub type Result<T> = std::result::Result<T, NetwatchError>;