bson 5.2.0 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
- # rubocop:todo all
3
-
4
- module BSON
5
- class Error
6
-
7
- # Raised when validating keys and a key is illegal in MongoDB
8
- class IllegalKey < Error
9
-
10
- # Instantiate the exception.
11
- #
12
- # @example Instantiate the exception.
13
- # BSON::Error::IllegalKey.new(string)
14
- #
15
- # @param [ String ] string The illegal string.
16
- #
17
- # @api private
18
- def initialize(string)
19
- super("'#{string}' is an illegal key in MongoDB. Keys may not start with '$' or contain a '.'.")
20
- end
21
- end
22
- end
23
- end