Sha256: 8e46aaa95b3e591ab2dcdb24df4d95a95c0e777b396d4d0ccbe8da2e31f5b5e0
Contents?: true
Size: 697 Bytes
Versions: 27
Compression:
Stored size: 697 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 module Mongoid module Errors # This error is raised when a bad configuration option is attempted to be # set. class InvalidConfigOption < MongoidError # Create the new error. # # @example Create the new error. # InvalidConfigOption.new(:name, [ :option ]) # # @param [ Symbol, String ] name The attempted config option name. # # @since 3.0.0 def initialize(name) super( compose_message( "invalid_config_option", { name: name, options: Config.settings.keys.map(&:inspect).join(", ") } ) ) end end end end
Version data entries
27 entries across 27 versions & 2 rubygems