Sha256: 1d22e241cee4cf865afdbedff7f7ced8972f87029c41bc325fe937abe4ce7131

Contents?: true

Size: 527 Bytes

Versions: 5

Compression:

Stored size: 527 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

module Mongoid
  module Errors

    # This error is raised when an empty configuration file is attempted to be
    # loaded.
    class EmptyConfigFile < MongoidError

      # Create the new error.
      #
      # @param [ String ] path The path of the config file used.
      #
      # @api private
      def initialize(path)
        super(
          compose_message(
            "empty_config_file",
            { path: path }
          )
        )
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mongoid-7.3.5 lib/mongoid/errors/empty_config_file.rb
mongoid-7.3.4 lib/mongoid/errors/empty_config_file.rb
mongoid-7.1.11 lib/mongoid/errors/empty_config_file.rb
mongoid-7.2.6 lib/mongoid/errors/empty_config_file.rb
mongoid-7.3.3 lib/mongoid/errors/empty_config_file.rb