Constructor DocumentConflictException
- Namespace
- IntentSharp.Documents
- Assembly
- IntentSharp.dll
DocumentConflictException(DocumentId, string, string)
Creates the exception for a save based on a version that is no longer running.
public DocumentConflictException(DocumentId document, string expected, string actual)
Parameters
documentDocumentIdThe document that was saved.
expectedstringThe sequence the save was based on, as text.
actualstringThe document's running sequence, as text, or
"none"when it has no running version.
Exceptions
- ArgumentNullException
expectedoractualis null.
DocumentConflictException(string, string, string)
Creates the exception for a state write that expected an etag the key no longer has.
public DocumentConflictException(string stateKey, string expected, string actual)
Parameters
stateKeystringThe state key that was written.
expectedstringThe etag the write expected.
actualstringThe key's current etag, or
"none"when the key has no value.
Exceptions
- ArgumentNullException
stateKey,expectedoractualis null.