Mongo
PHP Manual

The MongoConnectionException class

Introduction

Thrown when the driver fails to connect to the database.

Class synopsis

MongoConnectionException
extends MongoException {
}

Mongo
PHP Manual