pub use crate::sequence::SequenceCycle;
pub use crate::task::TaskTimeAnomaly;
#[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum ScheduleAuthoringError {
InvalidValue {
entity: &'static str,
attribute: &'static str,
expected: &'static str,
},
}
impl std::fmt::Display for ScheduleAuthoringError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::InvalidValue {
entity,
attribute,
expected,
} => write!(f, "{entity}.{attribute}: expected {expected}"),
}
}
}
impl std::error::Error for ScheduleAuthoringError {}