Enum entity::DatabaseError[][src]

pub enum DatabaseError {
    Connection {
        source: Box<dyn Error>,
    },
    Disconnected,
    MissingField {
        name: String,
    },
    MissingEdge {
        name: String,
    },
    MissingEnt {
        id: Id,
    },
    EntMutationFailed {
        id: Id,
        source: EntMutationError,
    },
    WrongType {
        expected: ValueType,
        actual: ValueType,
    },
    CorruptedEnt {
        id: Id,
        source: Box<dyn Error>,
    },
    BrokenEdge {
        name: String,
    },
    EntCapacityReached,
    Other {
        source: Box<dyn Error>,
    },
}

Represents some error the can occur when accessing the database

Variants

Connection
Show fields

Fields of Connection

source: Box<dyn Error>
Disconnected
MissingField
Show fields

Fields of MissingField

name: String
MissingEdge
Show fields

Fields of MissingEdge

name: String
MissingEnt
Show fields

Fields of MissingEnt

id: Id
EntMutationFailed
Show fields

Fields of EntMutationFailed

id: Idsource: EntMutationError
WrongType
Show fields

Fields of WrongType

expected: ValueTypeactual: ValueType
CorruptedEnt
Show fields

Fields of CorruptedEnt

id: Idsource: Box<dyn Error>
BrokenEdge
Show fields

Fields of BrokenEdge

name: String
EntCapacityReached
Other
Show fields

Fields of Other

source: Box<dyn Error>

Trait Implementations

impl Debug for DatabaseError[src]

impl Display for DatabaseError[src]

impl Error for DatabaseError[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> ToString for T where
    T: Display + ?Sized
[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.