123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Error::InvalidCollectionName

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Error
Instance Chain:
self, Error
Inherits: Error
  • Object
Defined in: lib/mongo/error/invalid_collection_name.rb

Overview

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

Since:

  • 2.0.0

Constant Summary

Class Method Summary

Constructor Details

.newInvalidCollectionName

Instantiate the new exception.

Examples:

Instantiate the exception.

Mongo::Collection::InvalidName.new

Since:

  • 2.0.0

[ GitHub ]

  
# File 'lib/mongo/error/invalid_collection_name.rb', line 34

def initialize
  super(MESSAGE)
end