Exception: SequenceServer::NO_BLAST_DATABASE_FOUND

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

Overview

Raised if not even one BLAST+ database was found in database_dir.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(database_dir) ⇒ NO_BLAST_DATABASE_FOUND

Returns a new instance of NO_BLAST_DATABASE_FOUND.



105
106
107
# File 'lib/sequenceserver/exceptions.rb', line 105

def initialize(database_dir)
  @database_dir = database_dir
end

Instance Attribute Details

#database_dirObject (readonly)

Returns the value of attribute database_dir.



109
110
111
# File 'lib/sequenceserver/exceptions.rb', line 109

def database_dir
  @database_dir
end

Instance Method Details

#to_sObject



111
112
113
# File 'lib/sequenceserver/exceptions.rb', line 111

def to_s
  "Could not find BLAST+ databases in: #{database_dir}."
end