cypher_dto/error.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum Error {
5 #[error("Map did not contain {0}, and no default was provided")]
6 MissingField(String),
7 #[error("Map contained a value for {0}, but it was the wrong type")]
8 TypeMismatch(String),
9 /// Wraps one of the Map errors
10 #[error("{0}")]
11 FromMapInner(String),
12 #[error("Error building field {1} on {0}")]
13 BuilderError(String, String),
14}