class Mongo::Error::InvalidDocument
Exception raised if the object is not a valid document.
@since 2.0.0
Constants
- MESSAGE
The error message.
@since 2.0.0
Public Class Methods
new()
click to toggle source
Instantiate the new exception.
@example Instantiate the exception.
Mongo::Error::InvalidDocument.new
@since 2.0.0
Calls superclass method
Mongo::Error::new
# File lib/mongo/error/invalid_document.rb, line 34 def initialize super(MESSAGE) end