use std::path::PathBuf;
#[derive(thiserror::Error, Debug)]
pub enum ShellError {
#[error("{0}")]
ShellError(#[from] brush_core::Error),
#[error("I/O error: {0}")]
IoError(#[from] std::io::Error),
#[error("failed to create xtrace file '{0}': {1}")]
FailedToCreateXtraceFile(PathBuf, std::io::Error),
#[error("input error occurred: {0}")]
InputError(std::io::Error),
#[error("requested input backend type not supported")]
InputBackendNotSupported,
#[error("unexpected error occurred reading input")]
UnexpectedInputFailure,
}