Enum mentat_db::errors::ErrorKind []

pub enum ErrorKind {
    Msg(String),
    Rusqlite(Error),
    NotYetImplemented(String),
    BadValuePair(StringValueType),
    BadSQLValuePair(Valuei32),
    BadBootstrapDefinition(String),
    BadSchemaAssertion(String),
    UnrecognizedIdent(String),
    UnrecognizedEntid(Entid),
    UnknownAttribute(Entid),
    CannotCacheNonUniqueAttributeInReverse(Entid),
    SchemaAlterationFailed(String),
    SchemaConstraintViolation(SchemaConstraintViolation),
    InputError(InputError),
    // some variants omitted
}

The kind of an error.

Variants

A convenient variant for String.

We're just not done yet. Message that the feature is recognized but not yet implemented.

We've been given a value that isn't the correct Mentat type.

We've got corrupt data in the SQL store: a value and value_type_tag don't line up.

A bootstrap definition couldn't be parsed or installed. This is a programmer error, not a runtime error.

A schema assertion couldn't be parsed.

An ident->entid mapping failed.

An entid->ident mapping failed. We also use this error if you try to transact an entid that we didn't allocate, in part because we blow the stack in error_chain if we define a new enum!

A transaction tried to violate a constraint of the schema of the Mentat store.

The transaction was malformed in some way (that was not recognized at parse time; for example, in a way that is schema-dependent).

Methods

impl ErrorKind

A string describing the error kind.

Trait Implementations

impl From<ErrorKind> for Error

Performs the conversion.

impl Debug for ErrorKind

Formats the value using the given formatter. Read more

impl Display for ErrorKind

Formats the value using the given formatter. Read more

impl<'a> From<&'a str> for ErrorKind

Performs the conversion.

impl From<String> for ErrorKind

Performs the conversion.

impl From<Error> for ErrorKind

Performs the conversion.

Auto Trait Implementations

impl Send for ErrorKind

impl Sync for ErrorKind