Exception: Molflow::BaseConfigurationLoadError

Inherits:
LoadError
  • Object
show all
Defined in:
lib/molflow/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ BaseConfigurationLoadError

Returns a new instance of BaseConfigurationLoadError.



5
6
7
8
9
10
11
12
13
# File 'lib/molflow/error.rb', line 5

def initialize(path)
  message = if File.exist?(path)
              "Sorry, but the configuration file has an incorrect format. Try `molflow install`.\nPath: #{path}"
            else
              "Sorry, but the configuration file is missing on this path: #{path}. Try `molflow install`"
            end

  super(message)
end