#[derive(Debug, thiserror::Error, Clone, PartialEq, Eq)]
pub enum ValueError {
#[error("unknown value type tag. Fix: use a supported DataType tag.")]
UnknownElementTypeTag,
#[error("unsupported value type for byte decoding. Fix: add an explicit Value decoder for this type.")]
UnsupportedElementType,
#[error("truncated input: expected {expected} bytes, got {actual}. Fix: provide exactly the element width.")]
TruncatedInput {
expected: usize,
actual: usize,
},
#[error("array element size mismatch: declared {declared} bytes, wire encoded {wire} bytes. Fix: regenerate the array payload with the declared element width.")]
MismatchedElementSize {
declared: usize,
wire: usize,
},
}