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


123
124
125
# File 'lib/sequenceserver/exceptions.rb', line 123

def initialize(database_dir)
  @database_dir = database_dir
end

Instance Attribute Details

#database_dirObject (readonly)

Returns the value of attribute database_dir


127
128
129
# File 'lib/sequenceserver/exceptions.rb', line 127

def database_dir
  @database_dir
end

Instance Method Details

#to_sObject


129
130
131
# File 'lib/sequenceserver/exceptions.rb', line 129

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