Class: SequenceServer::DatabaseUnreachableError
- 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
-
#more_info ⇒ Object
readonly
Returns the value of attribute more_info.
Instance Method Summary collapse
-
#initialize(more_info) ⇒ DatabaseUnreachableError
constructor
A new instance of DatabaseUnreachableError.
- #message ⇒ Object
- #title ⇒ Object
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_info ⇒ Object (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
#message ⇒ Object
18 19 20 21 22 |
# File 'lib/sequenceserver/api_errors.rb', line 18 def "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 |
#title ⇒ Object
14 15 16 |
# File 'lib/sequenceserver/api_errors.rb', line 14 def title 'Sequence database unreachable' end |