errors
– Exceptions raised by the package
exception bson.errors.``BSONError
Base class for all BSON exceptions.
exception bson.errors.``InvalidBSON
exception
Raised when trying to create a BSON object from an invalid document.
exception bson.errors.``InvalidId
exception bson.errors.``InvalidStringData
Raised when trying to encode a string containing non-UTF8 data.