WriteConflictException

class WriteConflictException(val conflicting: List<DocId>, val key: String? = null) : DelvaException(source)

An insert conflicts with the state it would take effect on. Nothing of the insert is visible and nothing was deleted. Nothing is wrong with the document itself: read the current state and try again. Either:

Constructors

Link copied to clipboard
constructor(conflicting: List<DocId>, key: String? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

The documents that weren't visible, ascending; or the one document that has key.

Link copied to clipboard
val key: String?

The document key a visible document already has, or null when the conflict is a replaced document.

Link copied to clipboard
open val message: String?