#[derive(Debug, snafu::Snafu)]
#[non_exhaustive]
pub enum ShadowTerminalError {
#[snafu(display("PTY Error"))]
PTY {
source: PTYError,
},
#[snafu(display("SteppableTerminal Error"))]
SteppableTerminal {
source: SteppableTerminalError,
},
#[snafu(whatever, display("{message}"))]
Whatever {
message: String,
#[snafu(source(from(Box<dyn std::error::Error + Send + Sync>, Some)))]
source: Option<Box<dyn std::error::Error + Send + Sync>>,
},
}
#[derive(Debug, snafu::Snafu)]
#[non_exhaustive]
pub enum PTYError {
#[snafu(whatever, display("{message}"))]
Whatever {
message: String,
#[snafu(source(from(Box<dyn std::error::Error + Send + Sync>, Some)))]
source: Option<Box<dyn std::error::Error + Send + Sync>>,
},
}
#[derive(Debug, snafu::Snafu)]
#[non_exhaustive]
pub enum SteppableTerminalError {
#[snafu(whatever, display("{message}"))]
Whatever {
message: String,
#[snafu(source(from(Box<dyn std::error::Error + Send + Sync>, Some)))]
source: Option<Box<dyn std::error::Error + Send + Sync>>,
},
}