use thiserror::Error;
use std::backtrace::Backtrace;

#[derive(Debug, Error)]
pub enum Error {
    #[error("io error")]
    Io {
        #[from]
        error: std::io::Error,
        backtrace: Backtrace,
    },
    #[error("string was not valid utf-8")]
    Utf8 {
        #[from]
        error: std::string::FromUtf8Error,
        backtrace: Backtrace,
    },
}
