pub enum CloudError {
Io(Error),
FormatError(String),
AlgorithmError(String),
InvalidParameter(String),
MemoryError(String),
SearchError(String),
SerializationError(Error),
Custom(String),
}Expand description
Main error type for FerrumCloud operations
Variants§
Io(Error)
I/O related errors
FormatError(String)
Invalid point cloud format
AlgorithmError(String)
Algorithm execution failed
InvalidParameter(String)
Invalid parameters provided
MemoryError(String)
Memory allocation error
SearchError(String)
Search operation failed
SerializationError(Error)
Serialization/deserialization error
Custom(String)
Generic error with custom message
Implementations§
Source§impl CloudError
impl CloudError
Sourcepub fn format_error<S: Into<String>>(msg: S) -> Self
pub fn format_error<S: Into<String>>(msg: S) -> Self
Create a new format error
Sourcepub fn algorithm_error<S: Into<String>>(msg: S) -> Self
pub fn algorithm_error<S: Into<String>>(msg: S) -> Self
Create a new algorithm error
Sourcepub fn invalid_parameter<S: Into<String>>(msg: S) -> Self
pub fn invalid_parameter<S: Into<String>>(msg: S) -> Self
Create a new invalid parameter error
Sourcepub fn memory_error<S: Into<String>>(msg: S) -> Self
pub fn memory_error<S: Into<String>>(msg: S) -> Self
Create a new memory error
Sourcepub fn search_error<S: Into<String>>(msg: S) -> Self
pub fn search_error<S: Into<String>>(msg: S) -> Self
Create a new search error
Trait Implementations§
Source§impl Debug for CloudError
impl Debug for CloudError
Source§impl Display for CloudError
impl Display for CloudError
Source§impl Error for CloudError
impl Error for CloudError
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 CloudError
impl From<Error> for CloudError
Auto Trait Implementations§
impl Freeze for CloudError
impl !RefUnwindSafe for CloudError
impl Send for CloudError
impl Sync for CloudError
impl Unpin for CloudError
impl !UnwindSafe for CloudError
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