CakeFest 2024: The Official CakePHP Conference

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

class 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 $errorLabels;
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* Méthodes */
/* Méthodes héritées */
final public Exception::getCode(): int
final public Exception::getFile(): string
final public Exception::getLine(): int
final public Exception::getTrace(): array
}

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

User Contributed Notes

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