Exception: ConfigLoader::MissingConfigFileError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/config_loader/missing_config_file_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ MissingConfigFileError

Returns a new instance of MissingConfigFileError.



3
4
5
6
7
8
9
10
# File 'lib/config_loader/missing_config_file_error.rb', line 3

def initialize(filename)
  message = [ "The config file couldn't be found: #{filename}",
              "ENV['RAILS_ENV'] = '#{ENV["RAILS_ENV"]}'",
              "ENV['RACK_ENV'] = '#{ENV["RACK_ENV"]}'",
              "ENV['RAILS_ROOT'] = '#{ENV["RAILS_ROOT"]}'" ]
        
  super(message.join("\n"))
end