Skip to main content

yscv_track/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Clone, PartialEq, Error)]
4pub enum TrackError {
5    #[error("invalid IoU threshold: {value}; expected finite value in [0, 1]")]
6    InvalidIouThreshold { value: f32 },
7    #[error("invalid max_tracks: {value}; expected max_tracks > 0")]
8    InvalidMaxTracks { value: usize },
9}