diff options
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index 45fef70..a7c2e0d 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,11 +1,14 @@ use custom_error::custom_error; custom_error! { pub Error + DsbParse { msg: String } = "Failed to parse dsb: {msg}", DsbInvalidWeek{ value: String } = "Week {value} is invalid", DsbInvalidHour{ value: String } = "Hour {value} is invalid", InvalidRoom{ value: String } = "Room {value} is invalid", InvalidCourse { value: String} = "Course {value} is invalid", + + ChronoParse { source: chrono::ParseError } = "Chrono: {source}", Parse{ source: std::num::ParseIntError } = "Parser: {source}", Io{source: std::io::Error } = "IO: {source}" } |