//! Errors for `plexus-iface`.

use thiserror::Error;

/// Errors produced by interface adapters.
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum Error {
    /// Underlying transport I/O failed.
    #[error("interface i/o error: {0}")]
    Io(#[from] std::io::Error),
    /// The interface was misconfigured.
    #[error("interface configuration error: {0}")]
    Config(String),
}
