Exception: SequenceServer::BLAST::RuntimeError

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

Overview

To signal internal errors.

RuntimeError is raised when BLAST+'s exits status is one of 2, 3, 4, or 255; see [1]. These are rare, infrastructure errors, used internally, and of concern only to the admins/developers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, message) ⇒ RuntimeError

Returns a new instance of RuntimeError


15
16
17
18
# File 'lib/sequenceserver/blast/exceptions.rb', line 15

def initialize(status, message)
  @status  = status
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message


20
21
22
# File 'lib/sequenceserver/blast/exceptions.rb', line 20

def message
  @message
end

#statusObject (readonly)

Returns the value of attribute status


20
21
22
# File 'lib/sequenceserver/blast/exceptions.rb', line 20

def status
  @status
end

Instance Method Details

#to_sObject


22
23
24
# File 'lib/sequenceserver/blast/exceptions.rb', line 22

def to_s
  "#{status}, #{message}"
end