Enum tdo_core::error::storage_error::ErrorKind
[−]
pub enum ErrorKind { Msg(String), FileCorrupted, SaveFailure, FileNotFound, UnableToConvert, }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
FileCorrupted
The accessed file is corrupted. This is most likely because someone edited the JSON file manually.
SaveFailure
The data could not be written to the file.
FileNotFound
The requested file could not be found.
UnableToConvert
The conversion of an older format failed.
Methods
impl ErrorKind
fn description(&self) -> &str
A string describing the error kind.