1#[derive(thiserror::Error, Debug)]
3pub enum XQError {
4 #[error("IO error: {0}")]
5 IO(#[from] std::io::Error),
6 #[error("UTF8 error: {0}")]
7 Utf8(#[from] std::str::Utf8Error),
8 #[error("Wrong answer format: {0}")]
9 WrongFormat(String),
10 #[error("Timeout waiting for xterm")]
11 Timeout,
12 #[error("Terminal error code: {0}")]
13 TerminalError(i64),
14 #[error("Nix error: {0}")]
15 #[cfg(unix)]
16 NixError(#[from] nix::errno::Errno),
17 #[error("Not an OSC response")]
18 NotAnOSCResponse,
19 #[error("Provided buffer is too small")]
20 BufferOverflow,
21 #[error("Unsupported platform")]
22 Unsupported,
23}