Class: SequenceServer::BLAST_DATABASE_ERROR

Inherits:
Object
  • Object
show all
Defined in:
lib/sequenceserver/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


136
137
138
139
# File 'lib/sequenceserver/exceptions.rb', line 136

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

Instance Attribute Details

#cmdObject (readonly)

Returns the value of attribute cmd


141
142
143
# File 'lib/sequenceserver/exceptions.rb', line 141

def cmd
  @cmd
end

#outObject (readonly)

Returns the value of attribute out


141
142
143
# File 'lib/sequenceserver/exceptions.rb', line 141

def out
  @out
end

Instance Method Details

#to_sObject


143
144
145
146
147
148
149
150
151
152
# File 'lib/sequenceserver/exceptions.rb', line 143

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/sequenceserver'?
MSG
end