Documentation
Table of Contents

Class DocumentConflictException

Namespace
IntentSharp.Documents
Assembly
IntentSharp.dll

Thrown by an IDocumentStore when a write was based on something that has since changed: a save whose BasedOn is not the running sequence, or a state write whose expected etag is not the current one. Nothing was written; read again and retry on what is there now.

public sealed class DocumentConflictException : IntentSharpException, ISerializable
Inheritance
object
Exception
DocumentConflictException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.ReferenceEquals(object, object)
Extension Methods

Constructors

DocumentConflictException(DocumentId, string, string)

Creates the exception for a save based on a version that is no longer running.

DocumentConflictException(string, string, string)

Creates the exception for a state write that expected an etag the key no longer has.

Properties

Actual

What the store held: the running sequence or the current etag, or "none".

Document

The document whose save conflicted; null for a state write.

Expected

What the write expected: the sequence it was based on, or the etag it named.

StateKey

The state key whose write conflicted; null for a document save.