class Mongoid::Errors::EmptyConfigFile

This error is raised when an empty configuration file is attempted to be loaded.

Public Class Methods

new(path) click to toggle source

Create the new error.

@param [ String ] path The path of the config file used.

@api private

Calls superclass method
# File lib/mongoid/errors/empty_config_file.rb, line 16
def initialize(path)
  super(
    compose_message(
      "empty_config_file",
      { path: path }
    )
  )
end