diff --git a/src/enums/error.rs b/src/enums/error.rs new file mode 100644 index 0000000..c12afa7 --- /dev/null +++ b/src/enums/error.rs @@ -0,0 +1,8 @@ + +pub enum Error { + CommunicatorError(String), + UknownError, + UnexpectedStatusCode(u16, u16, String), + NetworkError(String), + SerdeError +} \ No newline at end of file diff --git a/src/enums/mod.rs b/src/enums/mod.rs new file mode 100644 index 0000000..a281f3e --- /dev/null +++ b/src/enums/mod.rs @@ -0,0 +1 @@ +pub mod error; \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index 0f0238e..7b71df5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,5 @@ #[forbid(unsafe_code)] pub mod dtos; -pub mod domain; \ No newline at end of file +pub mod domain; +pub mod enums; \ No newline at end of file