#[non_exhaustive]pub enum DbError {
Show 33 variants
AlreadyExists,
NotFound,
WriterLockHeld,
IdOverflow,
TransactionIdOverflow,
CommitSeqOverflow,
DuplicateCatalogName,
DuplicateId,
UnknownElement {
id: ElementId,
},
UnknownRelation {
id: RelationId,
},
UnknownIncidence {
id: IncidenceId,
},
UnknownRole {
id: RoleId,
},
UnknownLabel {
id: LabelId,
},
UnknownRelationType {
id: RelationTypeId,
},
UnknownPropertyKey {
id: PropertyKeyId,
},
UnknownProjection {
id: ProjectionId,
},
UnknownIndex {
id: IndexId,
},
PropertyTypeMismatch {
expected: PropertyType,
actual: PropertyType,
},
WrongPropertyFamily {
expected: PropertyFamily,
actual: PropertyFamily,
},
InvalidProjection {
message: String,
},
EmptyQuery,
UnsupportedQuery {
message: String,
},
InvalidStore {
message: String,
},
UnsupportedFormat {
found: u32,
expected: u32,
},
Io {
operation: &'static str,
source: Error,
},
Traversal {
reason: &'static str,
},
LogCorrupt {
lsn: u64,
reason: &'static str,
},
BaseGenerationMismatch {
expected: u64,
found: u64,
},
UnknownName {
kind: &'static str,
name: String,
},
MissingProperty {
key: PropertyKeyId,
},
SchemaConflict {
name: String,
reason: &'static str,
},
ValueOutOfRange,
NoEqualityIndex {
key: PropertyKeyId,
},
}Expand description
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AlreadyExists
Db files already exist.
NotFound
Db files do not exist.
WriterLockHeld
The single-writer lock is already held by another writer.
IdOverflow
Canonical ID space is exhausted.
TransactionIdOverflow
Transaction ID space is exhausted.
CommitSeqOverflow
Commit sequence space is exhausted.
DuplicateCatalogName
Duplicate catalog name or ID.
DuplicateId
Duplicate canonical ID.
UnknownElement
Unknown element ID.
UnknownRelation
Unknown relation ID.
Fields
id: RelationIdMissing relation ID.
UnknownIncidence
Unknown incidence ID.
Fields
id: IncidenceIdMissing incidence ID.
UnknownRole
Unknown role ID.
UnknownLabel
Unknown label ID.
UnknownRelationType
Unknown relation type ID.
Fields
id: RelationTypeIdMissing relation type ID.
UnknownPropertyKey
Unknown property key ID.
Fields
id: PropertyKeyIdMissing property key ID.
UnknownProjection
Unknown projection ID.
Fields
id: ProjectionIdMissing projection ID.
UnknownIndex
Unknown index ID.
PropertyTypeMismatch
Property value type mismatched the catalog schema.
WrongPropertyFamily
Property subject family mismatched the catalog schema.
Fields
expected: PropertyFamilyExpected subject family.
actual: PropertyFamilyActual subject family.
InvalidProjection
Projection cannot be materialized as requested.
EmptyQuery
Query text is empty.
UnsupportedQuery
Query text is outside the pinned profile.
InvalidStore
Storage bytes are invalid.
UnsupportedFormat
The store’s OXGDB format version is not supported by this build. A base
written under an older format (for example one lacking the persisted
SECTION_INDEX_* postings) is rejected here rather than silently rebuilt.
Fields
Io
Wraps an IO error with operation context.
Traversal
A bounded traversal failed.
LogCorrupt
A delta-log record is corrupt beyond the recoverable torn tail.
Fields
BaseGenerationMismatch
A delta-log record names a different base generation than the superblock.
Fields
UnknownName
A catalog name was not found in a bound schema.
Fields
MissingProperty
A required property was absent from a subject.
Fields
key: PropertyKeyIdThe property key that was required but absent.
SchemaConflict
A declared schema item conflicts with an existing catalog entry.
Fields
ValueOutOfRange
A numeric value was outside the representable i64 range.
NoEqualityIndex
A property key has no associated equality index.
Fields
key: PropertyKeyIdThe property key lacking an equality index.
Trait Implementations§
Source§impl Error for DbError
impl Error for DbError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()