use thiserror::Error;
#[derive(Error, Debug)]
pub enum ClockBoundCError {
#[error("Could not connect to ClockBoundD's socket. {0}")]
ConnectError(#[source] std::io::Error),
#[error("Could not bind to socket. {0}")]
BindError(#[source] std::io::Error),
#[error("Could not set permissions on socket. {0}")]
SetPermissionsError(#[source] std::io::Error),
#[error("Could not send message to ClockBoundD. {0}")]
SendMessageError(#[source] std::io::Error),
#[error("Could not receive message from ClockBoundD. {0}")]
ReceiveMessageError(#[source] std::io::Error),
#[error("Could not write a request. {0}")]
WriteRequestError(#[source] std::io::Error),
}