Exception: ConfigModule::ConfigFileNotFound

Inherits:
EOFError
  • Object
show all
Defined in:
lib/config_module/exceptions.rb

Overview

for when config_file path isn’t found

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config_file) ⇒ ConfigFileNotFound

Returns a new instance of ConfigFileNotFound.

[View source]

30
31
32
# File 'lib/config_module/exceptions.rb', line 30

def initialize config_file
  @config_file = config_file
end

Instance Attribute Details

#config_fileObject (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

#messageObject

[View source]

35
36
37
38
# File 'lib/config_module/exceptions.rb', line 35

def message
  "config_file `#{config_file}` not found."\
  "Make sure it exists in the location specified."
end