Exception: BSON::String::IllegalKey
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- BSON::String::IllegalKey
- Defined in:
- lib/bson/string.rb
Overview
Raised when validating keys and a key is illegal in MongoDB
Instance Method Summary collapse
-
#initialize(string) ⇒ IllegalKey
constructor
Instantiate the exception.
Constructor Details
#initialize(string) ⇒ IllegalKey
Instantiate the exception.
116 117 118 |
# File 'lib/bson/string.rb', line 116 def initialize(string) super("'#{string}' is an illegal key in MongoDB. Keys may not start with '$' or contain a '.'.") end |