The MongoDB\Driver\Exception\ConnectionTimeoutException class
(mongodb >= 1.0.0)
Вступ
Thrown when the driver fails to establish a database connection within a
specified time limit
(connectTimeoutMS)
or server selection fails
(serverSelectionTimeoutMS).