Class: DuplicateEntryIdError
Defined in: model/errors.ts:375
code: 'duplicate-entry-id' — three different mistakes, three different messages. kind: 'collision' is entries.add() finding an id already in the store (S2.3 §1.3). kind: 'duplicate-in-list' is a whole-list write (entries.load(), and entries.syncAll(), #517)
finding one id twice inside the list itself — assertEntryBatchIsSound (data/entry-batch.ts)
throws this before anything stages. kind: 'upsert-and-remove' is entries.syncChanges() finding
one id in both its upsert and its remove list — a server that sends both has a bug, and
picking a winner would hide it.
Extends
Constructors
Constructor
new DuplicateEntryIdError(
entryId,operation,kind):DuplicateEntryIdError
Defined in: model/errors.ts:379
Parameters
entryId
operation
string
kind
"collision" | "duplicate-in-list" | "upsert-and-remove"
Returns
DuplicateEntryIdError
Overrides
Properties
code
readonlycode:ThrownCode
Defined in: model/errors.ts:104
Inherited from
entryId
readonlyentryId:EntryId
Defined in: model/errors.ts:376
operation
readonlyoperation:string
Defined in: model/errors.ts:377