use std::{error::Error, fmt};
#[derive(Debug)]
pub enum NaiaClientSocketError {
Message(String),
SendError,
}
impl fmt::Display for NaiaClientSocketError {
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
match self {
NaiaClientSocketError::Message(msg) => write!(f, "Naia Client Socket Error: {}", msg),
NaiaClientSocketError::SendError => write!(f, "Naia Client Socket Send Error"),
}
}
}
impl Error for NaiaClientSocketError {}