Exception: NeuroHmmerApp::CONFIG_FILE_ERROR

Inherits:
StandardError
  • Object
show all
Defined in:
lib/neurohmmerapp/exceptions.rb

Overview

Error in config file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ent, err) ⇒ CONFIG_FILE_ERROR

Returns a new instance of CONFIG_FILE_ERROR.



17
18
19
20
# File 'lib/neurohmmerapp/exceptions.rb', line 17

def initialize(ent, err)
  @ent = ent
  @err = err
end

Instance Attribute Details

#entObject (readonly)

Returns the value of attribute ent.



22
23
24
# File 'lib/neurohmmerapp/exceptions.rb', line 22

def ent
  @ent
end

#errObject (readonly)

Returns the value of attribute err.



22
23
24
# File 'lib/neurohmmerapp/exceptions.rb', line 22

def err
  @err
end

Instance Method Details

#to_sObject



24
25
26
27
28
29
# File 'lib/neurohmmerapp/exceptions.rb', line 24

def to_s
  <<MSG
Error reading config file: #{ent}.
#{err}
MSG
end