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.
133 134 135 136 |
# File 'lib/sequenceserver/api_errors.rb', line 133 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.
155 156 157 |
# File 'lib/sequenceserver/api_errors.rb', line 155 def more_info @more_info end |
Instance Method Details
#http_status ⇒ Object
138 139 140 |
# File 'lib/sequenceserver/api_errors.rb', line 138 def http_status 500 end |
#message ⇒ Object
146 147 148 149 150 151 152 153 |
# File 'lib/sequenceserver/api_errors.rb', line 146 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
142 143 144 |
# File 'lib/sequenceserver/api_errors.rb', line 142 def title 'System error' end |