Exception: Mongoid::Errors::EmptyConfigFile

Inherits:
MongoidError
  • Object
show all
Defined in:
build/mongoid-7.3/lib/mongoid/errors/empty_config_file.rb

Overview

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

Constant Summary

Constants inherited from MongoidError

MongoidError::BASE_KEY

Instance Attribute Summary

Attributes inherited from MongoidError

#problem, #resolution, #summary

Instance Method Summary collapse

Methods inherited from MongoidError

#compose_message

Constructor Details

#initialize(path) ⇒ EmptyConfigFile

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Create the new error.

Parameters:

  • path (String)

    The path of the config file used.



16
17
18
19
20
21
22
23
# File 'build/mongoid-7.3/lib/mongoid/errors/empty_config_file.rb', line 16

def initialize(path)
  super(
    compose_message(
      "empty_config_file",
      { path: path }
    )
  )
end