brush_interactive/
error.rs1use std::path::PathBuf;
2
3#[derive(thiserror::Error, Debug)]
5pub enum ShellError {
6 #[error("{0}")]
8 ShellError(#[from] brush_core::Error),
9
10 #[error("I/O error: {0}")]
12 IoError(#[from] std::io::Error),
13
14 #[error("failed to create xtrace file '{0}': {1}")]
16 FailedToCreateXtraceFile(PathBuf, std::io::Error),
17
18 #[error("input error occurred: {0}")]
20 InputError(std::io::Error),
21
22 #[error("requested input backend type not supported")]
24 InputBackendNotSupported,
25
26 #[error("unexpected error occurred reading input")]
28 UnexpectedInputFailure,
29}