You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

26 lines
628 B

use std::io;
use thiserror::Error;
#[derive(Error, Debug)]
pub enum TaurusError {
#[error("failed to read configuration file: {0:#?}")]
InvalidConfig(anyhow::Error),
#[error("failed to open identity file: {0}")]
NoIdentity(io::Error),
#[error("failed parse certificate: {0:#?}")]
InvalidCertificate(native_tls::Error),
#[error("failed to bind: {0}")]
BindFailed(io::Error),
#[error("invalid Unicode input")]
InvalidUnicode,
#[error("could not read the stream")]
StreamReadFailed(io::Error),
#[error("could not write to the stream")]
StreamWriteFailed(io::Error),
}