class LockException extends MongoDBException (View source)

LockException

Methods

static 
static 
invalidDocumentState(int $state)

No description

static 
documentNotMappedToCollection(string $className)

No description

static 
documentManagerClosed()

No description

static 
unknownDocumentNamespace(string $documentNamespaceAlias)

No description

static 
cannotPersistMappedSuperclass(string $className)

No description

static 
invalidDocumentRepository(string $className)

No description

static 
invalidGridFSRepository(string $className)

No description

invalidValueForType(string $type, $expected, $got)

No description

static 
shardKeyFieldCannotBeChanged(string $field, string $className)

No description

static 
shardKeyFieldMissing(string $field, string $className)

No description

static 
failedToEnableSharding(string $dbName, string $errorMessage)

No description

static 
failedToEnsureDocumentSharding(string $className, string $errorMessage)

No description

static 
commitInProgress()

No description

static 
documentBucketOnlyAvailableForGridFSFiles(string $className)

No description

static 
cannotPersistGridFSFile(string $className)

No description

static 
cannotReadGridFSSourceFile(string $filename)

No description

__construct(string $msg, object|null $document = null)

No description

getDocument()

Gets the document that caused the exception.

static 
lockFailed(object|null $document)

No description

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

No description

static 
notVersioned(string $documentName)

No description

static 
invalidLockFieldType(string $type)

No description

static 
invalidVersionFieldType(string $type)

No description

Details

static detachedDocumentCannotBeRemoved()

static invalidDocumentState(int $state)

Parameters

int $state

static documentNotMappedToCollection(string $className)

Parameters

string $className

static documentManagerClosed()

static unknownDocumentNamespace(string $documentNamespaceAlias)

Parameters

string $documentNamespaceAlias

static cannotPersistMappedSuperclass(string $className)

Parameters

string $className

static invalidDocumentRepository(string $className)

Parameters

string $className

static invalidGridFSRepository(string $className)

Parameters

string $className

static MongoDBException invalidValueForType(string $type, $expected, $got)

Parameters

string $type
$expected
$got

Return Value

MongoDBException

static shardKeyFieldCannotBeChanged(string $field, string $className)

Parameters

string $field
string $className

static shardKeyFieldMissing(string $field, string $className)

Parameters

string $field
string $className

static failedToEnableSharding(string $dbName, string $errorMessage)

Parameters

string $dbName
string $errorMessage

static failedToEnsureDocumentSharding(string $className, string $errorMessage)

Parameters

string $className
string $errorMessage

static commitInProgress()

static documentBucketOnlyAvailableForGridFSFiles(string $className)

Parameters

string $className

static cannotPersistGridFSFile(string $className)

Parameters

string $className

static cannotReadGridFSSourceFile(string $filename)

Parameters

string $filename

__construct(string $msg, object|null $document = null)

Parameters

string $msg
object|null $document

getDocument()

Gets the document that caused the exception.

static lockFailed(object|null $document)

Parameters

object|null $document

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

Parameters

object $document
int $expectedLockVersion
int $actualLockVersion

static notVersioned(string $documentName)

Parameters

string $documentName

static invalidLockFieldType(string $type)

Parameters

string $type

static invalidVersionFieldType(string $type)

Parameters

string $type