Class: Mongo::Error::InvalidCollectionName
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Error
|
|
|
Instance Chain:
self,
Error
|
|
| Inherits: |
Error
|
| Defined in: | lib/mongo/error/invalid_collection_name.rb |
Overview
Exception that is raised when trying to create a collection with no name.
Constant Summary
-
MESSAGE =
# File 'lib/mongo/error/invalid_collection_name.rb', line 26
The message is constant.
'nil is an invalid collection name. Please provide a string or symbol.'
Class Method Summary
-
.new ⇒ InvalidCollectionName
constructor
Instantiate the new exception.
Constructor Details
.new ⇒ InvalidCollectionName
Instantiate the new exception.
# File 'lib/mongo/error/invalid_collection_name.rb', line 34
def initialize super(MESSAGE) end