class Groonga::Client::Response::Error

Public Instance Methods

file() click to toggle source

@return [String, nil] The file name where the error is occurred.

@since 0.5.9

# 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() click to toggle source

@return [String, nil] The function name where the error is occurred.

@since 0.5.9

# 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() click to toggle source

@return [String, nil] The line where the error is occurred.

@since 0.5.9

# 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() click to toggle source

@return [String, nil] The error message of the error response.

@since 0.1.0

# File lib/groonga/client/response/error.rb, line 26
def message
  error_message
end