The MongoDB\Driver\Exception\CommandException class

(mongodb >= 1.5.0)

はじめに

Thrown when a command fails.

クラス概要

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
}

プロパティ

resultDocument

The result document associated with the failed command.

目次

To Top