forked from NationTech/harmony
wip: New crate opnsense-config
This commit is contained in:
13
harmony-rs/opnsense-config/src/error.rs
Normal file
13
harmony-rs/opnsense-config/src/error.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
use thiserror::Error;
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum Error {
|
||||
#[error("XML error: {0}")]
|
||||
Xml(String),
|
||||
#[error("SSH error: {0}")]
|
||||
Ssh(#[from] russh::Error),
|
||||
#[error("I/O error: {0}")]
|
||||
Io(#[from] std::io::Error),
|
||||
#[error("Config error: {0}")]
|
||||
Config(String),
|
||||
}
|
||||
Reference in New Issue
Block a user