CollectionOpException<T> class
final
Thrown by AtCollection.create / AtCollection.update / AtCollection.delete when any key-level op failed. Inspect results for the per-key breakdown, or failures / firstFailure for the subset that went wrong.
T is the item type of the collection that threw it, so
on CollectionOpException<Todo> catch (e) hands back a typed item.
- Implemented types
Constructors
-
CollectionOpException(List<
OpResult> results, {CItem<T> ? item})
Properties
-
failures
→ List<
OpFailure> -
no setter
- firstFailure → OpFailure?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
item
→ CItem<
T> ? -
The item AtCollection.create wrote when its own copy landed and a
recipient's copy did not, naming only the recipients whose copies were
written: retry the rest with AtCollection.updateSharedWith, not
AtCollection.create, which would write a second item. Null otherwise.
final
-
results
→ List<
OpResult> -
final
- 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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited