Exception: SequenceServer::CONFIG_FILE_ERROR

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sequenceserver/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/sequenceserver/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/sequenceserver/exceptions.rb', line 22

def ent
  @ent
end

#errObject (readonly)

Returns the value of attribute err.



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

def err
  @err
end

Instance Method Details

#to_sObject



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

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