class OptimisticLockException extends CouchDBException (View source)

An OptimisticLockException is thrown when a version check on an object that uses optimistic locking through a version field fails.

Methods

static 
unknownDocumentNamespace($documentNamespaceAlias)

No description

static 
unregisteredDesignDocument($designDocumentName)

No description

static 
invalidAttachment($className, $id, $filename)

No description

static 
detachedDocumentFound($className, $id, $assocName)

No description

static 
persistRemovedDocument()

No description

static 
luceneNotConfigured()

No description

static 
assignedIdGeneratorNoIdFound($className)

No description

static 
unexpectedDocumentType($document)

No description

__construct($msg, $document)

No description

object
getDocument()

Gets the document that caused the exception.

static 
lockFailed($document)

No description

static 
lockFailedVersionMissmatch($document, $expectedLockVersion, $actualLockVersion)

No description

static 
notVersioned($entityName)

No description

Details

static unknownDocumentNamespace($documentNamespaceAlias)

Parameters

$documentNamespaceAlias

static unregisteredDesignDocument($designDocumentName)

Parameters

$designDocumentName

static invalidAttachment($className, $id, $filename)

Parameters

$className
$id
$filename

static detachedDocumentFound($className, $id, $assocName)

Parameters

$className
$id
$assocName

static persistRemovedDocument()

static luceneNotConfigured()

static assignedIdGeneratorNoIdFound($className)

Parameters

$className

static unexpectedDocumentType($document)

Parameters

$document

__construct($msg, $document)

Parameters

$msg
$document

object getDocument()

Gets the document that caused the exception.

Return Value

object

static lockFailed($document)

Parameters

$document

static lockFailedVersionMissmatch($document, $expectedLockVersion, $actualLockVersion)

Parameters

$document
$expectedLockVersion
$actualLockVersion

static notVersioned($entityName)

Parameters

$entityName