class LockException extends MongoDBException (View source)

LockException

Methods

invalidFindByCall(string $documentName, string $fieldName, string $method)

No description

invalidDocumentState(string $state)

No description

documentNotMappedToCollection(string $className)

No description

findByRequiresParameter(string $methodName)

No description

unknownDocumentNamespace(string $documentNamespaceAlias)

No description

cannotPersistMappedSuperclass(string $className)

No description

queryNotIndexed(string $className, string $unindexedFields)

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

__construct($msg, $document = null)

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($documentName)

No description

static 
invalidLockFieldType($type)

No description

static 
invalidVersionFieldType($type)

No description

Details

static MongoDBException invalidFindByCall(string $documentName, string $fieldName, string $method)

Parameters

string $documentName
string $fieldName
string $method

Return Value

MongoDBException

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 findByRequiresParameter(string $methodName)

Parameters

string $methodName

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 queryNotIndexed(string $className, string $unindexedFields)

Parameters

string $className
string $unindexedFields

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

__construct($msg, $document = null)

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($documentName)

Parameters

$documentName

static invalidLockFieldType($type)

Parameters

$type

static invalidVersionFieldType($type)

Parameters

$type