Class: SequenceServer::DatabaseUnreachableError
- Inherits:
-
ValidationError
- Object
- 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
- #http_status ⇒ Object
-
#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.
10 11 12 13 |
# File 'lib/sequenceserver/api_errors.rb', line 10 def initialize(more_info) super @more_info = more_info end |
Instance Attribute Details
#more_info ⇒ Object (readonly)
Returns the value of attribute more_info.
8 9 10 |
# File 'lib/sequenceserver/api_errors.rb', line 8 def more_info @more_info end |
Instance Method Details
#http_status ⇒ Object
15 16 17 |
# File 'lib/sequenceserver/api_errors.rb', line 15 def http_status 422 end |
#message ⇒ Object
23 24 25 26 27 |
# File 'lib/sequenceserver/api_errors.rb', line 23 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
19 20 21 |
# File 'lib/sequenceserver/api_errors.rb', line 19 def title 'Sequence database unreachable' end |