Class Mongo::Error::InvalidDatabaseName
In: lib/mongo/error/invalid_database_name.rb
Parent: Error

Exception that is raised when trying to create a database with no name.

@since 2.0.0

Methods

new  

Constants

MESSAGE = 'nil is an invalid database name. Please provide a string or symbol.'.freeze   The message is constant.

@since 2.0.0

Public Class methods

Instantiate the new exception.

@example Instantiate the exception.

  Mongo::Error::InvalidDatabaseName.new

@since 2.0.0

[Validate]