add code item and related
This commit is contained in:
parent
9ed99594cc
commit
ae1c3e20ac
3 changed files with 327 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ pub enum Error {
|
|||
SerializationError(String),
|
||||
DeserializationError(String),
|
||||
InvalidStringEncoding(String),
|
||||
InconsistantStruct(String),
|
||||
}
|
||||
|
||||
pub type Result<T> = core::result::Result<T, Error>;
|
||||
|
|
@ -30,6 +31,7 @@ impl std::fmt::Display for Error {
|
|||
Self::SerializationError(msg) => write!(f, "Error: {}", msg),
|
||||
Self::DeserializationError(msg) => write!(f, "Error: {}", msg),
|
||||
Self::InvalidStringEncoding(msg) => write!(f, "Error: {}", msg),
|
||||
Self::InconsistantStruct(msg) => write!(f, "Error: {}", msg),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue