Sha256: d73f809299111bdb223294a26acff32ed536ad4209a0a6aa5fdeb58ec524d5a9

Contents?: true

Size: 528 Bytes

Versions: 5

Compression:

Stored size: 528 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

module Mongoid
  module Errors

    # This error is raised when a bad configuration file is attempted to be
    # loaded.
    class InvalidConfigFile < MongoidError

      # Create the new error.
      #
      # @param [ String ] path The path of the config file used.
      #
      # @api private
      def initialize(path)
        super(
          compose_message(
            "invalid_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/invalid_config_file.rb
mongoid-7.3.4 lib/mongoid/errors/invalid_config_file.rb
mongoid-7.1.11 lib/mongoid/errors/invalid_config_file.rb
mongoid-7.2.6 lib/mongoid/errors/invalid_config_file.rb
mongoid-7.3.3 lib/mongoid/errors/invalid_config_file.rb