Class: SequenceServer::InputError

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

Overview

Errors caused due to incorrect user input.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(more_info) ⇒ InputError

Returns a new instance of InputError.



50
51
52
53
# File 'lib/sequenceserver/api_errors.rb', line 50

def initialize(more_info)
  @more_info = more_info
  super
end

Instance Attribute Details

#more_infoObject (readonly)

Returns the value of attribute more_info.



74
75
76
# File 'lib/sequenceserver/api_errors.rb', line 74

def more_info
  @more_info
end

Instance Method Details

#http_statusObject



55
56
57
# File 'lib/sequenceserver/api_errors.rb', line 55

def http_status
  400
end

#messageObject



63
64
65
66
67
68
69
70
71
72
# File 'lib/sequenceserver/api_errors.rb', line 63

def message
  <<~MSG
    Looks like there's a problem with one of the query sequences, selected
    databases, or advanced parameters. Details of the error are included
    below. Please ask on our
    <a href="https://github.com/wurmlab/sequenceserver/issues" target="_blank">issue tracker</a>
    or on our <a href="https://groups.google.com/g/sequenceserver">forum</a> if you are
    not sure what the error message means, or if the error message is just a number.
  MSG
end

#titleObject



59
60
61
# File 'lib/sequenceserver/api_errors.rb', line 59

def title
  'Input error'
end