Class Mongo::Error::InvalidDocument
In: lib/mongo/error/invalid_document.rb
Parent: Error

Exception raised if the object is not a valid document.

@since 2.0.0

Methods

new  

Constants

MESSAGE = 'Invalid document provided.'.freeze   The error message.

@since 2.0.0

Public Class methods

Instantiate the new exception.

@example Instantiate the exception.

  Mongo::Error::InvalidDocument.new

@since 2.0.0

[Validate]