pub enum MemGraphError {
EntityNotFound(String),
DuplicateRelationship {
from: String,
to: String,
kind: String,
},
Internal(String),
}Expand description
Graph-specific errors, mirrors mem-graph::MemGraphError.
Variants§
EntityNotFound(String)
The requested entity was not found.
DuplicateRelationship
A relationship between the two entities already exists with the same kind.
Fields
Internal(String)
Generic internal error.
Trait Implementations§
Source§impl Debug for MemGraphError
impl Debug for MemGraphError
Source§impl Display for MemGraphError
impl Display for MemGraphError
Source§impl Error for MemGraphError
impl Error for MemGraphError
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<MemGraphError> for AgentRuntimeError
impl From<MemGraphError> for AgentRuntimeError
Source§fn from(e: MemGraphError) -> Self
fn from(e: MemGraphError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MemGraphError
impl RefUnwindSafe for MemGraphError
impl Send for MemGraphError
impl Sync for MemGraphError
impl Unpin for MemGraphError
impl UnsafeUnpin for MemGraphError
impl UnwindSafe for MemGraphError
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