Class: Groonga::Client::Response::Error
- Defined in:
- lib/groonga/client/response/error.rb
Instance Attribute Summary
Attributes inherited from Base
#body, #command, #header, #raw, #trace_logs
Instance Method Summary collapse
-
#file ⇒ String?
The file name where the error is occurred.
-
#function ⇒ String?
The function name where the error is occurred.
-
#line ⇒ String?
The line where the error is occurred.
-
#message ⇒ String?
The error message of the error response.
Methods inherited from Base
#elapsed_time, #error_message, #initialize, parse, #return_code, #start_time, #status_code, #success?
Constructor Details
This class inherits a constructor from Groonga::Client::Response::Base
Instance Method Details
#file ⇒ String?
Returns The file name where the error is occurred.
46 47 48 49 50 51 52 53 54 |
# File 'lib/groonga/client/response/error.rb', line 46 def file if header.nil? nil elsif header_v1? header[5] else (header["error"] || {})["file"] end end |
#function ⇒ String?
Returns The function name where the error is occurred.
33 34 35 36 37 38 39 40 41 |
# File 'lib/groonga/client/response/error.rb', line 33 def function if header.nil? nil elsif header_v1? header[4] else (header["error"] || {})["function"] end end |
#line ⇒ String?
Returns The line where the error is occurred.
59 60 61 62 63 64 65 66 67 |
# File 'lib/groonga/client/response/error.rb', line 59 def line if header.nil? nil elsif header_v1? header[5] else (header["error"] || {})["line"] end end |
#message ⇒ String?
Returns The error message of the error response.
26 27 28 |
# File 'lib/groonga/client/response/error.rb', line 26 def end |