Exceptions
PHP Manual

The MongoGridFSException class

Introduction

Thrown when there are errors reading or writing files to or from the database.

Class synopsis

extends MongoException {
}

Exceptions
PHP Manual