use zarrs_codec::{
ExpectedFixedLengthBytesError, ExpectedOptionalBytesError, ExpectedVariableLengthBytesError,
};
#[derive(Clone, Debug, thiserror::Error)]
pub enum ElementError {
#[error("Incompatible element type for data type")]
IncompatibleElementType,
#[error("Invalid element value")]
InvalidElementValue,
#[error(transparent)]
ExpectedFixedLengthBytes(#[from] ExpectedFixedLengthBytesError),
#[error(transparent)]
ExpectedVariableLengthBytes(#[from] ExpectedVariableLengthBytesError),
#[error(transparent)]
ExpectedOptionalBytes(#[from] ExpectedOptionalBytesError),
#[error("{0}")]
Other(String),
}