Exception: SequenceServer::BLAST_DATABASE_ERROR

Inherits:
StandardError
  • 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

Returns a new instance of BLAST_DATABASE_ERROR.



132
133
134
135
# File 'lib/sequenceserver/exceptions.rb', line 132

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

Instance Attribute Details

#cmdObject (readonly)

Returns the value of attribute cmd.



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

def cmd
  @cmd
end

#outObject (readonly)

Returns the value of attribute out.



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

def out
  @out
end

Instance Method Details

#to_sObject



139
140
141
142
143
144
145
146
147
148
# File 'lib/sequenceserver/exceptions.rb', line 139

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