scaffolding_core/errors.rs
1use std::error;
2use std::fmt;
3
4// struct
5#[derive(Debug, Clone)]
6pub struct DeserializeError;
7
8//impl
9impl fmt::Display for DeserializeError {
10 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
11 write!(f, "Unable to deserialize.")
12 }
13}
14impl error::Error for DeserializeError {}