pub enum Error {
Show 17 variants
InvalidEntryLine {
source: EntryError,
},
MissingDate,
StartDateFormat,
EndDateFormat,
StackPop,
InvalidDrop(String),
InvalidInt(String),
BadProjectFilter,
InvalidCommand(String),
DeprecatedCommand(&'static str),
EditorFailed(String, String),
UnexpectedArgument(String),
InvalidWasArgument(String),
InvalidStopEdit,
InvalidIgnoreEdit,
DateError {
source: DateError,
},
PathError {
source: PathError,
},
}
Expand description
Enumeration of errors that can happen processing timelogs
Variants§
InvalidEntryLine
Not a validly formatted entry line.
Fields
§
source: EntryError
MissingDate
Entry line is missing the required stamp.
StartDateFormat
Invalid starting date in a date pair.
EndDateFormat
Invalid ending date in a date pair.
StackPop
Unable to pop stack item.
InvalidDrop(String)
Invalid drop argument
InvalidInt(String)
Invalid drop argument
BadProjectFilter
Project descriptors invalid
InvalidCommand(String)
Not a valid timelog command
DeprecatedCommand(&'static str)
Deprecated command
EditorFailed(String, String)
Failed to execute editor on logfile. File is first string, error message is second.
UnexpectedArgument(String)
Unexpected argument
InvalidWasArgument(String)
Invalid argument for ‘was’
InvalidStopEdit
Tried to change stop entry
InvalidIgnoreEdit
Tried to change ignore entry
DateError
Errors in path/file handling
PathError
Errors in path/file handling
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<EntryError> for Error
impl From<EntryError> for Error
Source§fn from(source: EntryError) -> Self
fn from(source: EntryError) -> Self
Converts to this type from the input type.
Source§impl From<EmitterError> for Error
impl From<EmitterError> for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more