real_time_sqlx/error.rs
1//! Custom errors
2
3use thiserror::Error;
4
5/// Deserialization errors
6#[derive(Error, Debug)]
7pub enum DeserializeError {
8 #[error("JSON Value could not be deserialized to FinalType")]
9 IncompatibleValue(serde_json::Value),
10 #[error("JSON Value could not be coerced to a Map")]
11 IncompatibleMap(serde_json::Value),
12}