[][src]Enum redisgraph::error::RedisGraphError

pub enum RedisGraphError {
    RedisError(RedisError),
    ServerTypeError(String),
    ClientTypeError(String),
    LabelNotFound,
    RelationshipTypeNotFound,
    PropertyKeyNotFound,
    InvalidUtf8,
}

Common error type for this crate.

Variants

RedisError(RedisError)

Any error originating from the redis crate.

ServerTypeError(String)

Result of a miscommunication between this crate and the database.

This should never happen. If it does, please open an issue at https://github.com/malte-v/redisgraph-rs/issues/new .

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

impl Debug for RedisGraphError[src]

impl From<RedisError> for RedisGraphError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.