pub enum GraphError {
ClientTypeError(String),
LabelNotFound,
RelationshipTypeNotFound,
PropertyKeyNotFound,
InvalidUtf8,
}Expand description
Common error type for this crate.
Variants§
ClientTypeError(String)
Returned if the data you requested is of a different type than the data returned by the database.
LabelNotFound
Returned if a label name was not found in the graph’s internal registry.
This error is taken care of by the implementation and should never reach your code.
RelationshipTypeNotFound
Returned if a relationship type name was not found in the graph’s internal registry.
This error is taken care of by the implementation and should never reach your code.
PropertyKeyNotFound
Returned if a property key name was not found in the graph’s internal registry.
This error is taken care of by the implementation and should never reach your code.
InvalidUtf8
Returned if you requested a String and the database responded with bytes that are invalid UTF-8.
If you don’t care about whether the data is valid UTF-8, consider requesting a RedisString instead.
Trait Implementations§
Source§impl Clone for GraphError
impl Clone for GraphError
Source§fn clone(&self) -> GraphError
fn clone(&self) -> GraphError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GraphError
impl Debug for GraphError
Source§impl<'de> Deserialize<'de> for GraphError
impl<'de> Deserialize<'de> for GraphError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for GraphError
impl Display for GraphError
Source§impl PartialEq for GraphError
impl PartialEq for GraphError
Source§fn eq(&self, other: &GraphError) -> bool
fn eq(&self, other: &GraphError) -> bool
self and other values to be equal, and is used by ==.