Sha256: 5d29a49c6cf3ba6a8d164b3bcbcf19de0052e7cae26b32697f3129468a044870
Contents?: true
Size: 651 Bytes
Versions: 20
Compression:
Stored size: 651 Bytes
Contents
# frozen_string_literal: true 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. 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
20 entries across 20 versions & 1 rubygems