Exception: ConfigModule::ConfigFileNotFound
- Inherits:
-
EOFError
- Object
- EOFError
- ConfigModule::ConfigFileNotFound
- Defined in:
- lib/config_module/exceptions.rb
Overview
for when config_file path isn’t found
Instance Attribute Summary collapse
-
#config_file ⇒ Object
readonly
Returns the value of attribute config_file.
Instance Method Summary collapse
-
#initialize(config_file) ⇒ ConfigFileNotFound
constructor
A new instance of ConfigFileNotFound.
- #message ⇒ Object
Constructor Details
permalink #initialize(config_file) ⇒ ConfigFileNotFound
Returns a new instance of ConfigFileNotFound.
30 31 32 |
# File 'lib/config_module/exceptions.rb', line 30 def initialize config_file @config_file = config_file end |
Instance Attribute Details
permalink #config_file ⇒ Object (readonly)
Returns the value of attribute config_file.
33 34 35 |
# File 'lib/config_module/exceptions.rb', line 33 def config_file @config_file end |
Instance Method Details
permalink #message ⇒ Object
[View source]
35 36 37 38 |
# File 'lib/config_module/exceptions.rb', line 35 def "config_file `#{config_file}` not found."\ "Make sure it exists in the location specified." end |