La clase MongoDB\Driver\Exception\BulkWriteException

(mongodb >= 1.0.0)

Introducción

Se levanta cuando una operación de escritura en bloque falla.

Sinopsis de la Clase

final class MongoDB\Driver\Exception\BulkWriteException extends MongoDB\Driver\Exception\ServerException implements MongoDB\Driver\Exception\Exception {
/* Propiedades */
/* Propiedades heredadas */
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étodos */
final public function getWriteResult(): MongoDB\Driver\WriteResult
/* Métodos heredados */
final public function Exception::getMessage(): string
final public function Exception::getPrevious(): ?Throwable
final public function Exception::getCode(): int
final public function Exception::getFile(): string
final public function Exception::getLine(): int
final public function Exception::getTrace(): array
final public function Exception::getTraceAsString(): string
public function Exception::__toString(): string
private function Exception::__clone(): void
}

Propiedades

writeResult

El MongoDB\Driver\WriteResult asociado a la operación de escritura fallida.

Historial de cambios

Versión Descripción
PECL mongodb 2.3.0 La propiedad writeResult ahora es public readonly.
PECL mongodb 2.0.0

Esta clase extiende ahora MongoDB\Driver\Exception\ServerException en lugar de MongoDB\Driver\Exception\WriteException.

Tabla de contenidos

add a note

User Contributed Notes

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