(key: string | number)
| 162 | |
| 163 | export class DuplicateKeyError extends CollectionOperationError { |
| 164 | constructor(key: string | number) { |
| 165 | super( |
| 166 | `Cannot insert document with ID "${key}" because it already exists in the collection`, |
| 167 | ) |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | export class DuplicateKeySyncError extends CollectionOperationError { |
nothing calls this directly
no outgoing calls
no test coverage detected