Class Mongo::Error::InvalidCollectionName
In: lib/mongo/error/invalid_collection_name.rb
Parent: Error

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

@since 2.0.0

Methods

new  

Constants

MESSAGE = 'nil is an invalid collection 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::Collection::InvalidName.new

@since 2.0.0

[Validate]