Class: SequenceServer::InputError
- Defined in:
- lib/sequenceserver/api_errors.rb
Overview
Errors caused due to incorrect 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) ⇒ InputError
constructor
A new instance of InputError.
- #message ⇒ Object
- #title ⇒ Object
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_info ⇒ Object (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_status ⇒ Object
55 56 57 |
# File 'lib/sequenceserver/api_errors.rb', line 55 def http_status 400 end |
#message ⇒ Object
63 64 65 66 67 68 69 70 71 72 |
# File 'lib/sequenceserver/api_errors.rb', line 63 def <<~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 |
#title ⇒ Object
59 60 61 |
# File 'lib/sequenceserver/api_errors.rb', line 59 def title 'Input error' end |