Enum tdo_core::error::todo_error::ErrorKind
[−]
pub enum ErrorKind { Msg(String), NotInList, NoSuchList, CanNotRemoveDefault, NameAlreadyExists, IDAlreadyExists, }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
NotInList
The requested item is not in the list.
NoSuchList
The requested todo list does not exist.
CanNotRemoveDefault
The default list is tried to be removed.
NameAlreadyExists
A list with the same name already exists.
IDAlreadyExists
A todo with the same ID already exists.
Methods
impl ErrorKind
fn description(&self) -> &str
A string describing the error kind.