pub enum PathError {
FileAccess(String, String),
FileWrite(String, String),
FilenameMissing,
InvalidPath(String, String),
InvalidTimelogPath,
InvalidStackPath,
InvalidConfigPath,
AlreadyExists(String),
RenameFailure(String, String),
CantCreatePath(String, String),
CantReadTimelog,
CantWriteReport,
}
Expand description
Errors encountered accessing files and directories.
Variants§
FileAccess(String, String)
Error accessing a file when reading. File is first string, error message is second.
FileWrite(String, String)
Error writing to a file. File is first string, error message is second.
FilenameMissing
Required filename not supplied.
InvalidPath(String, String)
Attempt to access a file in directory that is not available. Directory is first string, error message is second.
InvalidTimelogPath
Invalid path for the logfiles.
InvalidStackPath
Invalid path for the stack file.
InvalidConfigPath
Invalid path for the logfiles.
AlreadyExists(String)
The filename references an existing file.
RenameFailure(String, String)
The filename references an existing file. File is first string, error message is second.
CantCreatePath(String, String)
Cannot create path. Path is first string, error message is second.
CantReadTimelog
Cannot read timelog
CantWriteReport
Cannot write to report file
Trait Implementations§
Source§impl Error for PathError
impl Error for PathError
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()
impl Eq for PathError
impl StructuralPartialEq for PathError
Auto Trait Implementations§
impl Freeze for PathError
impl RefUnwindSafe for PathError
impl Send for PathError
impl Sync for PathError
impl Unpin for PathError
impl UnwindSafe for PathError
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