Enum db_traits::errors::DbErrorKind [] [src]

pub enum DbErrorKind {
    NotYetImplemented(String),
    BadValuePair(StringValueType),
    BadSQLValuePair(Valuei32),
    BadBootstrapDefinition(String),
    BadSchemaAssertion(String),
    UnrecognizedIdent(String),
    UnrecognizedEntid(Entid),
    UnallocatedEntid(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,
    TimelinesMixed,
    TimelinesMoveToNonEmpty,
    TimelinesInvalidRange,
    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.

Tried to transact an entid that isn't allocated.

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]

[src]

Performs the conversion.

impl Clone for DbErrorKind
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for DbErrorKind
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for DbErrorKind
[src]

[src]

Formats the value using the given formatter. Read more