use thiserror::Error;
use super::cli_net::NOXIS_RS_CREDS;

#[derive(Debug, Error)]
pub enum NoxisCliError {
    #[error("Can't send any data to {:?}. Noxis-rs daemon is disabled or can't be accessed", NOXIS_RS_CREDS)]
    NoxisDaemonMissing,
    #[error("Noxis CLI can't write any data to the Noxis-rs port. Check daemon and it's web-functionality")]
    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,
}