dfx_core/error/
socket_addr_conversion.rs

1
2
3
4
5
6
7
8
9
10
use thiserror::Error;

#[derive(Error, Debug)]
pub enum SocketAddrConversionError {
    #[error("Did not find any socket addresses in string '{0}'")]
    EmptyIterator(String),

    #[error("Failed to convert {0} to a socket address")]
    ParseSocketAddrFailed(String, #[source] std::io::Error),
}