pub enum FractalError {
Io(Error),
Image(ImageError),
PathConversion(String),
SerializationError(String),
NotFound(String),
UnsupportedOperation(String),
TaskNotSet(String),
ConnectionError(String),
Other(String),
}
Expand description
Enum representing various types of errors that can occur in the application.
Variants§
Io(Error)
Error related to Input/Output operations.
Image(ImageError)
Error related to image processing.
PathConversion(String)
Error occurring when a path cannot be converted to a string.
SerializationError(String)
Error related to data serialization.
NotFound(String)
Error indicating that a required item was not found.
UnsupportedOperation(String)
Error representing an unsupported operation.
TaskNotSet(String)
Error indicating that a required task was not set.
ConnectionError(String)
Error related to network connection.
Other(String)
Generic error for other cases.
Trait Implementations§
Source§impl Debug for FractalError
impl Debug for FractalError
Source§impl Display for FractalError
impl Display for FractalError
Source§impl Error for FractalError
impl Error for FractalError
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()
Source§impl From<Error> for FractalError
impl From<Error> for FractalError
Source§impl From<Error> for FractalError
impl From<Error> for FractalError
Auto Trait Implementations§
impl Freeze for FractalError
impl !RefUnwindSafe for FractalError
impl Send for FractalError
impl Sync for FractalError
impl Unpin for FractalError
impl !UnwindSafe for FractalError
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