use thiserror::Error;
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum EpcisHashError {
#[error("XML parse error: {0}")]
XmlParse(String),
#[error("empty document: no EPCIS events found")]
EmptyDocument,
#[error("missing required field: {field}")]
MissingField {
field: &'static str,
},
#[error("JSON error: {0}")]
Json(#[from] serde_json::Error),
}