todo_file/errors/parse.rs
1use thiserror::Error;
2
3/// Parsing errors
4#[derive(Error, Debug, PartialEq, Eq)]
5#[non_exhaustive]
6pub enum ParseError {
7 /// The provided action string is not one of the allowed values
8 #[error("The action `{0}` is not valid")]
9 InvalidAction(String),
10 /// The provided line is not valid
11 #[error("The line `{0}` is not valid")]
12 InvalidLine(String),
13}