class BSON::String::IllegalKey
Raised when validating keys and a key is illegal in MongoDB
@since 4.1.0
Public Class Methods
new(string)
click to toggle source
Instantiate the exception.
@example Instantiate the exception.
BSON::Object::IllegalKey.new(string)
@param [ String ] string The illegal string.
@since 4.1.0
Calls superclass method
# File lib/bson/string.rb, line 115 def initialize(string) super("'#{string}' is an illegal key in MongoDB. Keys may not start with '$' or contain a '.'.") end