Files
harmony/harmony-rs/opnsense-config/src/error.rs
Jean-Gabriel Gill-Couture 32cea6c3ff wip: New crate opnsense-config
2024-10-13 08:48:56 -04:00

14 lines
293 B
Rust

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),
}