Exception: NeuroHmmerApp::CONFIG_FILE_ERROR
- Inherits:
-
StandardError
- Object
- StandardError
- NeuroHmmerApp::CONFIG_FILE_ERROR
- Defined in:
- lib/neurohmmerapp/exceptions.rb
Overview
Error in config file.
Instance Attribute Summary collapse
-
#ent ⇒ Object
readonly
Returns the value of attribute ent.
-
#err ⇒ Object
readonly
Returns the value of attribute err.
Instance Method Summary collapse
-
#initialize(ent, err) ⇒ CONFIG_FILE_ERROR
constructor
A new instance of CONFIG_FILE_ERROR.
- #to_s ⇒ Object
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
#ent ⇒ Object (readonly)
Returns the value of attribute ent.
22 23 24 |
# File 'lib/neurohmmerapp/exceptions.rb', line 22 def ent @ent end |
#err ⇒ Object (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_s ⇒ Object
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 |