Skip to main content

utc_cron_expr/error/
enum.rs

1/// Error returned when parsing an invalid cron expression.
2#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3pub enum CronError {
4    /// Expression did not contain 5 or 6 fields (and was not a known macro alias).
5    InvalidFieldCount,
6    /// Field token could not be parsed as `*`, value, range, or step.
7    InvalidFieldSyntax,
8    /// Numeric value fell outside the field's valid bounds.
9    ValueOutOfRange,
10    /// Step divisor was zero or unparseable.
11    InvalidStep,
12}