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