errors – Exceptions raised by the gridfs package#

Exceptions raised by the gridfs package

exception gridfs.errors.CorruptGridFile(message: str = '', error_labels: Iterable[str] | None = None)#

Raised when a file in GridFS is malformed.

exception gridfs.errors.FileExists(message: str = '', error_labels: Iterable[str] | None = None)#

Raised when trying to create a file that already exists.

exception gridfs.errors.GridFSError(message: str = '', error_labels: Iterable[str] | None = None)#

Base class for all GridFS exceptions.

exception gridfs.errors.NoFile(message: str = '', error_labels: Iterable[str] | None = None)#

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