Added error enum to dtos
This commit is contained in:
parent
6a468ff8a8
commit
c7a33999ca
|
@ -0,0 +1,8 @@
|
||||||
|
|
||||||
|
pub enum Error {
|
||||||
|
CommunicatorError(String),
|
||||||
|
UknownError,
|
||||||
|
UnexpectedStatusCode(u16, u16, String),
|
||||||
|
NetworkError(String),
|
||||||
|
SerdeError
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
pub mod error;
|
|
@ -1,4 +1,5 @@
|
||||||
#[forbid(unsafe_code)]
|
#[forbid(unsafe_code)]
|
||||||
|
|
||||||
pub mod dtos;
|
pub mod dtos;
|
||||||
pub mod domain;
|
pub mod domain;
|
||||||
|
pub mod enums;
|
Loading…
Reference in New Issue