#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
pub enum MotionError {
#[error("motion slot {slot} is outside the runtime storage")]
SlotOutOfBounds {
slot: usize,
},
#[error(
"motion slot {slot} has generation {actual_generation}, but the handle expects {handle_generation}"
)]
StaleHandle {
slot: usize,
handle_generation: u64,
actual_generation: u64,
},
#[error("motion slot {slot} no longer contains an animation")]
Removed {
slot: usize,
},
#[error("motion value type mismatch: expected {expected}, found {actual}")]
TypeMismatch {
expected: &'static str,
actual: &'static str,
},
}