use snafu::Snafu;

#[derive(Snafu, Debug)]
#[snafu(visibility(pub))]
pub enum Error {
    #[snafu(display(
        "Invalid address, s: {s}. Address should contain domain and port. eg: www.bing.com:443"
    ))]
    InvalidAddress { s: String },
    #[snafu(display("Repeated address: s: {s}"))]
    RepeatedAddress { s: String },
    #[snafu(display("Invalid domain, s: {s}."))]
    InvalidDomain { s: String },
    #[snafu(display("Invalid router, s: {s}."))]
    InvalidRouter { s: String },
}
