Exception: GeneValidatorApp::BLAST_DATABASE_ERROR

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

Overview

Raised if there was an error determining BLAST+ databases in database_dir.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cmd, out) ⇒ BLAST_DATABASE_ERROR

Returns a new instance of BLAST_DATABASE_ERROR.



166
167
168
169
# File 'lib/genevalidatorapp/exceptions.rb', line 166

def initialize(cmd, out)
  @cmd = cmd
  @out = out
end

Instance Attribute Details

#cmdObject (readonly)

Returns the value of attribute cmd.



171
172
173
# File 'lib/genevalidatorapp/exceptions.rb', line 171

def cmd
  @cmd
end

#outObject (readonly)

Returns the value of attribute out.



171
172
173
# File 'lib/genevalidatorapp/exceptions.rb', line 171

def out
  @out
end

Instance Method Details

#to_sObject



173
174
175
176
177
178
179
180
181
182
# File 'lib/genevalidatorapp/exceptions.rb', line 173

def to_s
  <<MSG
Error obtaining BLAST databases.
Tried: #{cmd}
Error:
#{out.strip}

Please could you report this to 'https://groups.google.com/forum/#!forum/GV'?
MSG
end