Exception: Mongoid::Errors::EmptyConfigFile

Inherits:
MongoidError
  • Object
show all
Defined in:
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.



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

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