lib/bson/exceptions.rb in bson-1.0.4 vs lib/bson/exceptions.rb in bson-1.0.5

- old
+ new

@@ -30,9 +30,12 @@ class InvalidStringEncoding < BSONError; end # Raised when attempting to initialize an invalid ObjectID. class InvalidObjectID < BSONError; end + # Raised when attempting to initialize an invalid ObjectID. + class InvalidObjectId < BSONError; end + # 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. class InvalidDocument < BSONError; end # Raised when an invalid name is used.