Skip to main content

minitimer/
error.rs

1use thiserror::Error;
2
3/// Errors that can occur in the task system.
4#[derive(Error, Debug)]
5pub enum TaskError {
6    /// The frequency configuration is invalid.
7    #[error("invalid frequency: {0}")]
8    InvalidFrequency(String),
9
10    /// The task was not found.
11    #[error("task not found: {0}")]
12    TaskNotFound(u64),
13}