pub enum Error {
Show 15 variants
InvalidEntryLine {
source: EntryError,
},
MissingDate,
StartDateFormat,
EndDateFormat,
WrongDateOrder,
StackPop,
InvalidDrop(String),
InvalidInt(String),
BadProjectFilter,
InvalidCommand(String),
DeprecatedCommand(&'static str),
EditorFailed(String, String),
UnexpectedArgument(String),
DateError {
source: Error,
},
PathError {
source: PathError,
},
}Expand description
Enumeration of errors that can happen processing timelogs
Variants
InvalidEntryLine
Fields
source: EntryErrorNot a validly formatted entry line.
MissingDate
Entry line is missing the required stamp.
StartDateFormat
Invalid starting date in a date pair.
EndDateFormat
Invalid ending date in a date pair.
WrongDateOrder
Start date after end date.
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
DateError
Fields
source: ErrorErrors in path/file handling
PathError
Fields
source: PathErrorErrors in path/file handling
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<EmitterError> for Error
impl From<EmitterError> for Error
sourceimpl From<EntryError> for Error
impl From<EntryError> for Error
sourcefn from(source: EntryError) -> Self
fn from(source: EntryError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more