pub enum FIFError {
CSVError(Error),
FileNotFound {
path: PathBuf,
},
FileOpenError {
path: PathBuf,
io_error: Error,
},
Io(Error),
Json(Error),
Yaml(Error),
PermissionDenied {
path: PathBuf,
},
XlsxError(XlsxError),
}Expand description
FIF Error enum
The FIFError enum defines the error values
https://doc.rust-lang.org/rust-by-example/error/multiple_error_types/define_error_type.html
Variants§
CSVError(Error)
FileNotFound
Specific error when a file is not found.
FileOpenError
Generic file opening error with more context.
Io(Error)
Standard I/O error wrapper.
Json(Error)
Error when a JSON serialization or deserialization operation fails.
Yaml(Error)
Error when a Yaml serialization or deserialization operation fails.
PermissionDenied
Specific error when file permission is denied.
XlsxError(XlsxError)
XlsxError wrapper.
Trait Implementations§
Source§impl Error for FIFError
impl Error for FIFError
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 FIFError
impl !RefUnwindSafe for FIFError
impl Send for FIFError
impl Sync for FIFError
impl Unpin for FIFError
impl !UnwindSafe for FIFError
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