class LockException extends MongoDBException (View source)

LockException

Methods

invalidDocumentState(string $state)

No description

documentNotMappedToCollection(string $className)

No description

unknownDocumentNamespace(string $documentNamespaceAlias)

No description

cannotPersistMappedSuperclass(string $className)

No description

invalidDocumentRepository(string $className)

No description

invalidValueForType(string $type, string|array $expected, mixed $got)

No description

shardKeyFieldCannotBeChanged(string $field, string $className)

No description

shardKeyFieldMissing(string $field, string $className)

No description

failedToEnableSharding(string $dbName, string $errorMessage)

No description

failedToEnsureDocumentSharding(string $className, string $errorMessage)

No description

commitInProgress()

No description

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

No description

object|null
getDocument()

Gets the document that caused the exception.

static 
lockFailed($document)

No description

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

No description

static 
notVersioned($documentName)

No description

static 
invalidLockFieldType($type)

No description

static 
invalidVersionFieldType($type)

No description

Details

static MongoDBException detachedDocumentCannotBeRemoved()

Return Value

MongoDBException

static MongoDBException invalidDocumentState(string $state)

Parameters

string $state

Return Value

MongoDBException

static MongoDBException documentNotMappedToCollection(string $className)

Parameters

string $className

Return Value

MongoDBException

static MongoDBException documentManagerClosed()

Return Value

MongoDBException

static MongoDBException unknownDocumentNamespace(string $documentNamespaceAlias)

Parameters

string $documentNamespaceAlias

Return Value

MongoDBException

static MongoDBException cannotPersistMappedSuperclass(string $className)

Parameters

string $className

Return Value

MongoDBException

static MongoDBException invalidDocumentRepository(string $className)

Parameters

string $className

Return Value

MongoDBException

static MongoDBException invalidValueForType(string $type, string|array $expected, mixed $got)

Parameters

string $type
string|array $expected
mixed $got

Return Value

MongoDBException

static MongoDBException shardKeyFieldCannotBeChanged(string $field, string $className)

Parameters

string $field
string $className

Return Value

MongoDBException

static MongoDBException shardKeyFieldMissing(string $field, string $className)

Parameters

string $field
string $className

Return Value

MongoDBException

static MongoDBException failedToEnableSharding(string $dbName, string $errorMessage)

Parameters

string $dbName
string $errorMessage

Return Value

MongoDBException

static MongoDBException failedToEnsureDocumentSharding(string $className, string $errorMessage)

Parameters

string $className
string $errorMessage

Return Value

MongoDBException

static MongoDBException commitInProgress()

Return Value

MongoDBException

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

Parameters

string $msg
object|null $document

object|null getDocument()

Gets the document that caused the exception.

Return Value

object|null

static lockFailed($document)

Parameters

$document

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

Parameters

$document
$expectedLockVersion
$actualLockVersion

static notVersioned($documentName)

Parameters

$documentName

static invalidLockFieldType($type)

Parameters

$type

static invalidVersionFieldType($type)

Parameters

$type