You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
encrypted-dns-server/src/errors.rs

14 lines
385 B
Rust

pub use failure::{bail, ensure, Error};
use std::io;
use std::net::AddrParseError;
#[derive(Debug, Fail)]
pub enum ProxyError {
#[fail(display = "Internal error: [{}]", _0)]
InternalError(String),
#[fail(display = "I/O error: [{}]", _0)]
Io(#[cause] io::Error),
#[fail(display = "Unable to parse address: [{}]", _0)]
AddrParseError(#[cause] AddrParseError),
}