Class: SequenceServer::SystemError

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

Overview

Errors caused by everything other than invalid user input.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_infoObject (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_statusObject



84
85
86
# File 'lib/sequenceserver/api_errors.rb', line 84

def http_status
  500
end

#messageObject



92
93
94
95
96
97
98
99
# File 'lib/sequenceserver/api_errors.rb', line 92

def message
  <<~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

#titleObject



88
89
90
# File 'lib/sequenceserver/api_errors.rb', line 88

def title
  'System error'
end