errors – Exceptions raised by the gridfs package

Exceptions raised by the gridfs package

exception gridfs.errors.CorruptGridFile

Raised when a file in GridFS is malformed.

exception gridfs.errors.FileExists

Raised when trying to create a file that already exists.

New in version 1.7.

exception gridfs.errors.GridFSError

Base class for all GridFS exceptions.

New in version 1.5.

exception gridfs.errors.NoFile

Raised when trying to read from a non-existent file.

New in version 1.6.

exception gridfs.errors.UnsupportedAPI

Raised when trying to use the old GridFS API.

In version 1.6 of the PyMongo distribution there were backwards incompatible changes to the GridFS API. Upgrading shouldn’t be difficult, but the old API is no longer supported (with no deprecation period). This exception will be raised when attempting to use unsupported constructs from the old API.

New in version 1.6.

Previous topic

gridfs – Tools for working with GridFS

Next topic

grid_file – Tools for representing files stored in GridFS

This Page