use thiserror::Error;
pub type Result<T> = std::result::Result<T, Error>;
#[derive(Debug, Error)]
pub enum Error {
#[error("Received no response from terminal.")]
NoResponse,
#[error("End of file was reached on stdin")]
StdInEof,
#[error("{0} is not supported on this platform.")]
NotSupportedOnPlatform(&'static str),
#[error("Failed to wait for stdin.")]
WaitAbandoned,
#[error("Failed to parse rgb.")]
InvalidRgbFormat,
#[error(transparent)]
Io(#[from] std::io::Error),
#[error("Failed to convert integer types.")]
IntConvert,
#[error(transparent)]
ParseInt(#[from] std::num::ParseIntError),
}