Removed error from here

This commit is contained in:
Franklin 2022-08-31 13:17:00 -04:00
parent 8c59fdee30
commit 80abf74269
2 changed files with 0 additions and 24 deletions

View File

@ -1,23 +0,0 @@
use std::fmt::Display;
#[derive(Debug)]
pub enum Error {
CommunicatorError(String),
UknownError,
UnexpectedStatusCode(u16, u16, String),
NetworkError(String),
SerdeError
}
impl Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::CommunicatorError(message) => write!(f, "Error of type Communicator Error. Message: {}", message),
Error::UknownError => write!(f, "Error of type Uknown Error."),
Error::UnexpectedStatusCode(expected, actual, message) => write!(f, "Error of type UnexpectedStatusCode. Expected: {}, Actual: {}, Message: {}", expected, actual, message),
Error::NetworkError(message) => write!(f, "Error of type Network Error. Message: {}", message),
Error::SerdeError => write!(f, "Error of type Serde Error."),
}
}
}

View File

@ -1 +0,0 @@
pub mod error;