Added error enum to dtos

This commit is contained in:
Franklin 2022-08-21 11:30:09 -04:00
parent 6a468ff8a8
commit c7a33999ca
3 changed files with 11 additions and 1 deletions

8
src/enums/error.rs Normal file
View File

@ -0,0 +1,8 @@
pub enum Error {
CommunicatorError(String),
UknownError,
UnexpectedStatusCode(u16, u16, String),
NetworkError(String),
SerdeError
}

1
src/enums/mod.rs Normal file
View File

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

View File

@ -2,3 +2,4 @@
pub mod dtos;
pub mod domain;
pub mod enums;