Skip to main content

pedant_types/
error.rs

1/// Errors from type serialization/deserialization.
2/// Single variant today; enum allows adding variants without breaking callers.
3#[derive(Debug, thiserror::Error)]
4pub enum TypeError {
5    /// JSON serialization or deserialization failed.
6    #[error("json error: {0}")]
7    Json(#[from] serde_json::Error),
8}