Exception: SequenceServer::BLAST_NOT_COMPATIBLE

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

Overview

Raised if SequenceServer determined NCBI BLAST+ present on the user's system but not meeting SequenceServer's minimum version requirement.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(version) ⇒ BLAST_NOT_COMPATIBLE


98
99
100
# File 'lib/sequenceserver/exceptions.rb', line 98

def initialize(version)
  @version  = version
end

Instance Attribute Details

#versionObject (readonly)

Returns the value of attribute version


102
103
104
# File 'lib/sequenceserver/exceptions.rb', line 102

def version
  @version
end

Instance Method Details

#to_sObject


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

def to_s
  <<MSG
Your BLAST+ version #{version} is outdated.
SequenceServer needs NCBI BLAST+ version #{MINIMUM_BLAST_VERSION} or higher.
MSG
end