The MongoDB\Driver\Exception\ConnectionTimeoutException class
(mongodb >= 1.0.0)
Introdução
Thrown when the driver fails to establish a database connection within a
specified time limit
(connectTimeoutMS)
or server selection fails
(serverSelectionTimeoutMS).