pub enum Error {
Show 22 variants
NoDatabase,
DatabaseEmpty,
Confy(ConfyError),
Io(Error),
Fmt(Error),
Json(Error),
OpenJob(usize, Job),
NoOpenJob,
EndBeforeStart(DateTime, DateTime),
Warnings(Vec<Warning>),
Cancel,
TagCollision(TagSet),
EnterMessage,
UnknownColumn(String),
OutputFileExists(String),
DateTimeParse(ParseError),
JobNotFound(usize),
MissingTags,
ToFewJobs(usize, usize),
RangeFormat(String),
DurationFormat(String),
PartialDateTimeFormat(String),
}Expand description
Errors that occur in jobber.
Variants§
NoDatabase
No database found
DatabaseEmpty
Database is empty
Confy(ConfyError)
Global configuration error
Io(Error)
I/O error
Fmt(Error)
Formatting error
Json(Error)
JSON error
OpenJob(usize, Job)
There still is an open job.
NoOpenJob
There is no open job.
EndBeforeStart(DateTime, DateTime)
End of the job is before it’s start
Warnings(Vec<Warning>)
Found warming(s).
Cancel
You canceled.
TagCollision(TagSet)
Can not use tags within same job because they have different configurations.
EnterMessage
User needs to enter message
UnknownColumn(String)
Unknown column name
OutputFileExists(String)
Output file already exists.
DateTimeParse(ParseError)
Date/Time parse error: {0}
JobNotFound(usize)
No job found at position {0}
MissingTags
A value is required for ‘–tags
ToFewJobs(usize, usize)
Too few jobs in database to process operation
RangeFormat(String)
Parsing of a range failed
DurationFormat(String)
Parsing of a duration failed
PartialDateTimeFormat(String)
Parsing of a partial date and time failed
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more