class Mongo::Error::InvalidDatabaseName

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

@since 2.0.0

Constants

MESSAGE

The message is constant.

@since 2.0.0

Public Class Methods

new() click to toggle source

Instantiate the new exception.

@example Instantiate the exception.

Mongo::Error::InvalidDatabaseName.new

@since 2.0.0

Calls superclass method Mongo::Error::new
# File lib/mongo/error/invalid_database_name.rb, line 34
def initialize
  super(MESSAGE)
end