Class Mongoid::Errors::InvalidDatabase
In: lib/mongoid/errors/invalid_database.rb
Parent: MongoidError

Raised when the database connection has not been set up properly, either by attempting to set an object on the db that is not a +Mongo::DB+, or not setting anything at all.

@example Create the error.

  InvalidDatabase.new("Not a DB")

Methods

new  

Public Class methods

[Validate]