Documentation
Table of Contents

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

document DocumentId

The document that was saved.

expected string

The sequence the save was based on, as text.

actual string

The document's running sequence, as text, or "none" when it has no running version.

Exceptions

ArgumentNullException

expected or actual is 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

stateKey string

The state key that was written.

expected string

The etag the write expected.

actual string

The key's current etag, or "none" when the key has no value.

Exceptions

ArgumentNullException

stateKey, expected or actual is null.