use crate::LatticeKind;
#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
pub enum HyperQuantError {
#[error("empty input is not quantizable")]
EmptyInput,
#[error("non-finite input at index {index}")]
NonFiniteInput { index: usize },
#[error("non-finite quantization artifact: {stage}")]
NonFiniteArtifact { stage: &'static str },
#[error("unsupported lattice {0:?}: implementation is not shipped, and no placeholder result is emitted")]
UnsupportedLattice(LatticeKind),
}
pub type Result<T> = std::result::Result<T, HyperQuantError>;