pub enum Error {
Show 24 variants
Maintenance,
InvalidTransition,
InvalidJob,
JobCapacity,
ArithmeticOverflow,
InvalidQuery,
MultipleMatches,
InvalidCursor,
RowTooLarge,
MissingOperationTime,
ManagedField,
TimestampRegression,
MissingField(&'static str),
InvalidSchema,
InvalidOperand,
UnknownEntity,
IncompatibleSchema,
Corrupt,
Exists,
Missing,
DuplicateTarget,
UniqueViolation,
ReferenceViolation,
Limit,
}Expand description
Failure before commit begins, or a refusal to admit stored data.
Variants§
Maintenance
Ordinary access is closed by an admitted durable maintenance gate.
InvalidTransition
A maintenance identity is invalid or does not match this source/active transition.
InvalidJob
The retained job handle, query, result shape or requested sequence does not match.
JobCapacity
All retained job slots are occupied; cancel or clean up expired jobs explicitly.
ArithmeticOverflow
An arithmetic total exceeds its accumulator or explicitly selected result range.
InvalidQuery
Unsupported query field/shape or unavailable ordered access path.
MultipleMatches
A query requiring at most one matching entity found a second.
InvalidCursor
Malformed continuation or a different database/schema/query boundary.
RowTooLarge
One matching encoded row exceeds the whole requested output-byte allowance.
MissingOperationTime
Managed insert/replacement requires an explicitly captured batch time.
ManagedField
A caller attempted to assign a database-managed field.
TimestampRegression
A real change would move managed time behind its stored value.
MissingField(&'static str)
An insert input omitted a required field with no declared default.
InvalidSchema
Invalid or unsupported compiled schema.
InvalidOperand
An index operand has a different exact type from its declared field.
UnknownEntity
The typed entity is not part of this admitted schema.
IncompatibleSchema
The stored manifest belongs to another schema or format.
Corrupt
Missing, malformed or internally inconsistent stored data.
Exists
Insert requires an absent primary key.
Missing
Replacement/deletion requires an existing primary key.
DuplicateTarget
Two batch commands address the same entity and primary key.
UniqueViolation
The intended final state violates a unique index.
ReferenceViolation
A reference target is absent, or a deleted target still has a dependent.
Limit
A declared resource bound or revision range is exceeded.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · 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()