pub enum GnnError {
DimensionMismatch {
expected: String,
actual: String,
},
InvalidShape(String),
LayerConfig(String),
Training(String),
Compression(String),
Search(String),
InvalidInput(String),
Mmap(String),
Io(Error),
Core(RuvectorError),
Other(String),
}Expand description
Errors that can occur during GNN operations.
Variants§
DimensionMismatch
Tensor dimension mismatch
InvalidShape(String)
Invalid tensor shape
LayerConfig(String)
Layer configuration error
Training(String)
Training error
Compression(String)
Compression error
Search(String)
Search error
InvalidInput(String)
Invalid input
Mmap(String)
Memory mapping error
Io(Error)
I/O error
Core(RuvectorError)
Core library error
Other(String)
Generic error
Implementations§
Source§impl GnnError
impl GnnError
Sourcepub fn dimension_mismatch(
expected: impl Into<String>,
actual: impl Into<String>,
) -> Self
pub fn dimension_mismatch( expected: impl Into<String>, actual: impl Into<String>, ) -> Self
Create a dimension mismatch error
Sourcepub fn invalid_shape(msg: impl Into<String>) -> Self
pub fn invalid_shape(msg: impl Into<String>) -> Self
Create an invalid shape error
Sourcepub fn layer_config(msg: impl Into<String>) -> Self
pub fn layer_config(msg: impl Into<String>) -> Self
Create a layer config error
Sourcepub fn compression(msg: impl Into<String>) -> Self
pub fn compression(msg: impl Into<String>) -> Self
Create a compression error
Sourcepub fn invalid_input(msg: impl Into<String>) -> Self
pub fn invalid_input(msg: impl Into<String>) -> Self
Create an invalid input error
Trait Implementations§
Source§impl Error for GnnError
impl Error for GnnError
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<RuvectorError> for GnnError
impl From<RuvectorError> for GnnError
Source§fn from(source: RuvectorError) -> Self
fn from(source: RuvectorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GnnError
impl !RefUnwindSafe for GnnError
impl Send for GnnError
impl Sync for GnnError
impl Unpin for GnnError
impl !UnwindSafe for GnnError
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