use thiserror::Error;
#[derive(Debug, Error)]
pub enum WorldStateError {
#[error("aggregation failed: {0}")]
Aggregation(String),
#[error("serialization error: {0}")]
Serialization(#[from] serde_json::Error),
#[error("I/O error: {0}")]
Io(#[from] std::io::Error),
#[error("{0}")]
Internal(String),
}
pub type Result<T> = std::result::Result<T, WorldStateError>;