Exception: Mongo::InvalidDocument
- Inherits:
-
MongoDBError
- Object
- RuntimeError
- MongoDBError
- Mongo::InvalidDocument
- Defined in:
- lib/mongo/exceptions.rb
Overview
Raised when trying to insert a document that exceeds the 4MB limit or when the document contains objects that can’t be serialized as BSON.