use thiserror::Error;

#[derive(Debug, Error)]
pub enum VoxelError {
    #[error("coordinates ({x}, {y}, {z}) out of bounds")]
    OutOfBounds { x: u32, y: u32, z: u32 },
}

#[derive(Debug, Error)]
pub enum FontError {
    #[error("failed to parse TTF font data: invalid format")]
    InvalidTtf,
}