Class: SequenceServer::DatabaseUnreachableError

Inherits:
Error
  • Object
show all
Defined in:
lib/sequenceserver/api_errors.rb

Overview

DatabaseUnreachableError is raised when the serialised Job object is refering to a database that is not present in the current filesystem.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(more_info) ⇒ DatabaseUnreachableError

Returns a new instance of DatabaseUnreachableError.



9
10
11
12
# File 'lib/sequenceserver/api_errors.rb', line 9

def initialize(more_info)
  super
  @more_info = more_info
end

Instance Attribute Details

#more_infoObject (readonly)

Returns the value of attribute more_info.



7
8
9
# File 'lib/sequenceserver/api_errors.rb', line 7

def more_info
  @more_info
end

Instance Method Details

#messageObject



18
19
20
21
22
# File 'lib/sequenceserver/api_errors.rb', line 18

def message
  "The action you're trying to perform is not possible because \
    the database is unreachable. This can happen if the database has \
    been deleted or you are performing an action on an imported job."
end

#titleObject



14
15
16
# File 'lib/sequenceserver/api_errors.rb', line 14

def title
  'Sequence database unreachable'
end