Enum mentat_db::errors::DbErrorKind [] [src]

pub enum DbErrorKind {
    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,
    CacheUpdateFailed,
    CouldNotSetVersionPragma,
    CouldNotGetVersionPragma,
    CouldNotSearch,
    TxInsertFailedToAddMissingDatoms,
    TxInsertFailedToRetractDatoms,
    DatomsUpdateFailedToRetract,
    DatomsUpdateFailedToAdd,
    FailedToCreateTempTables,
    NonFtsInsertionIntoTempSearchTableFailed,
    FtsInsertionFailed,
    FtsInsertionIntoTempSearchTableFailed,
    FtsFailedToDropSearchIds,
    FailedToUpdatePartitionMap,
    RusqliteError(String),
}

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 From<DbErrorKind> for DbError
[src]

Performs the conversion.

impl Clone for DbErrorKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for DbErrorKind
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for DbErrorKind
[src]

Formats the value using the given formatter. Read more

impl Fail for DbErrorKind
[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 DbErrorKind
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for DbErrorKind

impl Sync for DbErrorKind