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
-
objectExceptionDocumentConflictException
- Implements
-
ISerializable
- Inherited Members
-
Exception.GetBaseException()Exception.GetType()Exception.ToString()Exception.DataException.HelpLinkException.HResultException.InnerExceptionException.MessageException.SourceException.StackTraceException.TargetSiteobject.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.