The MongoDB\Driver\Exception\ConnectionException class

(mongodb >= 1.0.0)

Introduction

Base class for exceptions thrown when the driver fails to establish a database connection.

Class synopsis

classMongoDB\Driver\Exception\ConnectionExceptionextendsMongoDB\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