Enum mentat_db::errors::DbError [] [src]

pub enum DbError {
    NotYetImplemented(String),
    BadValuePair(StringValueType),
    BadSQLValuePair(Value, i32),
    BadBootstrapDefinition(String),
    BadSchemaAssertion(String),
    UnrecognizedIdent(String),
    UnrecognizedEntid(Entid),
    UnknownAttribute(Entid),
    CannotCacheNonUniqueAttributeInReverse(Entid),
    SchemaAlterationFailed(String),
    SchemaConstraintViolation(SchemaConstraintViolation),
    InputError(InputError),
    WrongTypeValueForFtsAssertion,
}

Variants

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. TODO _1.data_type()

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).

Trait Implementations

impl Debug for DbError
[src]

Formats the value using the given formatter. Read more

impl Fail for DbError
[src]

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more

Provides context for this failure. Read more

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

Important traits for Causes<'f>

Returns a iterator over the causes of this Fail with itself as the first item and the root_cause as the final item. Read more

Returns the "root cause" of this Fail - the last value in the cause chain which does not return an underlying cause. Read more

impl Display for DbError
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for DbError

impl Sync for DbError