The MongoDB\Driver\Exception\ServerException class

(mongodb >= 1.5.0)

Introducción

Base class for exceptions thrown by the server. The code of this exception and its subclasses will correspond to the original error code from the server.

Sinopsis de la Clase

classMongoDB\Driver\Exception\ServerExceptionextendsMongoDB\Driver\Exception\RuntimeExceptionimplementsMongoDB\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
}
To Top