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.



144
145
146
147
# File 'lib/genevalidatorapp/exceptions.rb', line 144

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

Instance Attribute Details

#cmdObject (readonly)

Returns the value of attribute cmd.



149
150
151
# File 'lib/genevalidatorapp/exceptions.rb', line 149

def cmd
  @cmd
end

#outObject (readonly)

Returns the value of attribute out.



149
150
151
# File 'lib/genevalidatorapp/exceptions.rb', line 149

def out
  @out
end

Instance Method Details

#to_sObject



151
152
153
154
155
156
157
158
159
160
# File 'lib/genevalidatorapp/exceptions.rb', line 151

def to_s
  "Error obtaining BLAST databases.\nTried: \#{cmd}\nError:\n\#{out.strip}\n\nPlease could you report this to 'https://groups.google.com/forum/#!forum/sequenceserver'?\n"
end