Class: SequenceServer::SystemError
- Defined in:
- lib/sequenceserver/api_errors.rb
Overview
Errors caused by everything other than invalid user input.
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 = nil) ⇒ SystemError
constructor
A new instance of SystemError.
- #message ⇒ Object
- #title ⇒ Object
Constructor Details
#initialize(more_info = nil) ⇒ SystemError
Returns a new instance of SystemError.
79 80 81 82 |
# File 'lib/sequenceserver/api_errors.rb', line 79 def initialize(more_info = nil) @more_info = more_info || backtrace super end |
Instance Attribute Details
#more_info ⇒ Object (readonly)
Returns the value of attribute more_info.
101 102 103 |
# File 'lib/sequenceserver/api_errors.rb', line 101 def more_info @more_info end |
Instance Method Details
#http_status ⇒ Object
84 85 86 |
# File 'lib/sequenceserver/api_errors.rb', line 84 def http_status 500 end |
#message ⇒ Object
92 93 94 95 96 97 98 99 |
# File 'lib/sequenceserver/api_errors.rb', line 92 def <<~MSG Looks like there is a problem with the server. Try visiting the page again after a while. If this message persists, please report the problem on our <a href="https://github.com/wurmlab/sequenceserver/issues" target="_blank"> issue tracker</a>. MSG end |
#title ⇒ Object
88 89 90 |
# File 'lib/sequenceserver/api_errors.rb', line 88 def title 'System error' end |