brush_interactive/error.rs
1/// Represents an error encountered while running or otherwise managing an interactive shell.
2#[derive(thiserror::Error, Debug)]
3pub enum ShellError {
4 /// An error occurred with the embedded shell.
5 #[error("{0}")]
6 ShellError(#[from] brush_core::Error),
7
8 /// A generic I/O error occurred.
9 #[error("I/O error: {0}")]
10 IoError(#[from] std::io::Error),
11
12 /// An error occurred while reading input.
13 #[error("input error occurred")]
14 InputError,
15
16 /// The requested input backend type is not supported.
17 #[error("requested input backend type not supported")]
18 InputBackendNotSupported,
19}