class BSON::Error::InvalidKey
def initialize(object)
- Api: - private
Parameters:
-
object
(Object
) -- The object that was meant for the key.
Other tags:
- Example: Instantiate the exception. -
def initialize(object) super("#{object.class} instances are not allowed as keys in a BSON document.") end