La classe MongoDB\Driver\Exception\WriteException

(mongodb >= 1.0.0)

Introduction

Classe de base pour les exceptions levées par une opération d'écriture défaillante. L'exception encapsule un objet MongoDB\Driver\WriteResult .

Synopsis de la classe

MongoDB\Driver\Exception\WriteException extends MongoDB\Driver\Exception\ServerException implements MongoDB\Driver\Exception\Exception {
/* Propriétés */
/* Propriétés héritées */
protected array|null $errorLabels;
protected string $message;
protected int $code;
protected string $file;
protected int $line;
/* Méthodes */
/* Méthodes héritées */
final public MongoDB\Driver\Exception\RuntimeException::hasErrorLabel(string $errorLabel): bool
final public Exception::getMessage(): string
final public Exception::getPrevious(): Throwable|null
final public Exception::getCode(): int
final public Exception::getFile(): string
final public Exception::getLine(): int
final public Exception::getTrace(): array
final public Exception::getTraceAsString(): string
public Exception::__toString(): string
final private Exception::__clone(): void
}

Propriétés

writeResult

MongoDB\Driver\WriteResult associé à l'opération d'écriture défaillante.

Historique

Version Description
PECL mongodb 1.5.0

Cette classe s'étend maintenant MongoDB\Driver\Exception\ServerException à la place de MongoDB\Driver\Exception\RuntimeException.

Sommaire

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top