Enum pace_core::PaceErrorKind
source · #[non_exhaustive]pub enum PaceErrorKind {
StdIo(Error),
SerializationToTomlFailed(Error),
DeserializationFromTomlFailed(Error),
ActivityLog(ActivityLogErrorKind),
ChronoParse(ParseError),
ChronoDurationIsNegative(OutOfRangeError),
ConfigFileNotFound {
current_dir: String,
file_name: String,
},
ParentDirNotFound(PathBuf),
DatabaseStorageNotImplemented,
ParsingTimeFromUserInputFailed(String),
NoPathAvailable,
}Expand description
PaceErrorKind describes the errors that can happen while executing a high-level command.
This is a non-exhaustive enum, so additional variants may be added in future. It is
recommended to match against the wildcard _ instead of listing all possible variants,
to avoid problems when new variants are added.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
StdIo(Error)
SerializationToTomlFailed(Error)
Serialization to TOML failed: {0}
DeserializationFromTomlFailed(Error)
Deserialization from TOML failed: {0}
ActivityLog(ActivityLogErrorKind)
Activity log error: {0}
ChronoParse(ParseError)
Chrono parse error: {0}
ChronoDurationIsNegative(OutOfRangeError)
Chrono duration is negative: {0}
ConfigFileNotFound
Config file {file_name} not found in directory hierarchy starting from {current_dir}
ParentDirNotFound(PathBuf)
Configuration file not found, please run pace craft setup to initialize pace
DatabaseStorageNotImplemented
Database storage not implemented, yet!
ParsingTimeFromUserInputFailed(String)
Failed to parse time ‘{0}’ from user input, please use the format HH:MM
NoPathAvailable
There is no path available to store the activity log