mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 17:57:47 +03:00
feat(error): add error for unknown lesson type
This commit is contained in:
@@ -17,6 +17,9 @@ pub enum Error {
|
||||
|
||||
#[display("No start and end times matching the lesson (at {_0}) was found.")]
|
||||
LessonTimeNotFound(CellPos),
|
||||
|
||||
#[display("Unknown lesson type `{type}` at {pos}")]
|
||||
UnknownLessonType { pos: CellPos, r#type: String },
|
||||
}
|
||||
|
||||
pub type Result<T> = core::result::Result<T, Error>;
|
||||
|
||||
Reference in New Issue
Block a user