The MongoDB\Driver\Exception\CommandException class

(mongodb >= 1.5.0)

Einführung

Thrown when a command fails.

Klassenbeschreibung

classMongoDB\Driver\Exception\CommandExceptionextendsMongoDB\Driver\Exception\ServerExceptionimplementsMongoDB\Driver\Exception\Exception {
protectedstring$message = "";
privatestring$string = "";
protectedint$code;
protectedstring$file = "";
protectedint$line;
privatearray$trace = [];
private?Throwable$previous = null;
finalpublicException::getCode(): int
finalpublicException::getLine(): int
}

Eigenschaften

resultDocument

The result document associated with the failed command.

Inhaltsverzeichnis

To Top