KoolbaseRevisionMismatchException class
Thrown when a write was refused because the record changed since it was composed.
Carries the server's current state, returned with the refusal, so deciding what to do needs no second fetch — and cannot race one, which is the whole point of the server checking and applying atomically.
On the direct write path this surfaces to the caller. During replay of a queued offline write it becomes a persisted conflict instead: the write is not lost, and not applied, until someone decides.
- Inheritance
-
- Object
- KoolbaseException
- KoolbaseDataException
- KoolbaseRevisionMismatchException
Constructors
Properties
- code → String?
-
The server's stable error code, when it sent one. Prefer branching on the
exception type; this is for logging and for codes the SDK does not yet map.
finalinherited
-
currentRecord
→ Map<
String, dynamic> ? -
The record as the server holds it now.
final
- currentRevision → int?
-
The revision the record now carries.
final
- expectedRevision → int?
-
The revision the write expected.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
What went wrong, in words. From the server where it said something useful.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited