Sha256: 0fcdae6877de2149f9bdda62f16fc017a3837aa37576fe588670bddd8466ebd9
Contents?: true
Size: 591 Bytes
Versions: 23
Compression:
Stored size: 591 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 module Mongoid module Errors # This error is raised when a default client is not defined. class NoDefaultClient < MongoidError # Create the new error with the defined client names. # # @example Create the new error. # NoDefaultClient.new([ :analytics ]) # # @param [ Array<Symbol> ] keys The defined clients. # # @since 3.0.0 def initialize(keys) super( compose_message("no_default_client", { keys: keys.join(", ") }) ) end end end end
Version data entries
23 entries across 23 versions & 2 rubygems