Exception: Mongoid::Errors::InvalidConfigFile

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

Overview

This error is raised when a bad 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) ⇒ InvalidConfigFile

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.



15
16
17
18
19
20
21
22
# File 'build/mongoid-7.4/lib/mongoid/errors/invalid_config_file.rb', line 15

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