1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
use serde_json::Error as JSONError;

#[derive(Debug)]
pub enum Error {
    JSONError(JSONError),
    RetrievalError
}

impl From<JSONError> for Error {
    fn from(error: JSONError) -> Self {
        Error::JSONError(error)
    }
}