use thiserror::Error;

#[derive(Debug, Error)]
pub enum NoxisCliError {
    #[error("Can't find socket `{0}`. Error : {1}")]
    NoxisDaemonMissing(String, String),
    #[error("Noxis CLI can't write any data to the Noxis-rs port. Check daemon and it's runtime!")]
    PortIsNotWritable,
    #[error("Can't send Cli-prompt to the Noxis-rs. Check it's state")]
    CliPromptCanNotBeSent,
    #[error("Can't parse CLI struct and send as byte stream")]
    ToStringCliParsingParsing,
    #[error("Can't read Noxis response due to {0}")]
    CliResponseReadError(String)
}