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.
104 105 106 107 |
# File 'lib/sequenceserver/api_errors.rb', line 104 def initialize(more_info) @more_info = more_info super end |
Instance Attribute Details
#more_info ⇒ Object (readonly)
Returns the value of attribute more_info.
128 129 130 |
# File 'lib/sequenceserver/api_errors.rb', line 128 def more_info @more_info end |
Instance Method Details
#http_status ⇒ Object
109 110 111 |
# File 'lib/sequenceserver/api_errors.rb', line 109 def http_status 400 end |
#message ⇒ Object
117 118 119 120 121 122 123 124 125 126 |
# File 'lib/sequenceserver/api_errors.rb', line 117 def " Looks like there's a problem with one of the query sequences, selected\n databases, or advanced parameters. Details of the error are included\n below. Please ask on our\n <a href=\"https://github.com/wurmlab/sequenceserver/issues\" target=\"_blank\">issue tracker</a>\n or on our <a href=\"https://groups.google.com/g/sequenceserver\">forum</a> if you are\n not sure what the error message means, or if the error message is just a number.\n MSG\nend\n" |
#title ⇒ Object
113 114 115 |
# File 'lib/sequenceserver/api_errors.rb', line 113 def title 'Input error' end |