Exception: Groonga::Client::InvalidResponse

Inherits:
Error
  • Object
show all
Defined in:
lib/groonga/client/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, raw_response, error_message) ⇒ InvalidResponse

Returns a new instance of InvalidResponse.



40
41
42
43
44
45
46
47
48
49
# File 'lib/groonga/client/error.rb', line 40

def initialize(command, raw_response, error_message)
  @command = command
  @raw_response = raw_response
  message = +"invalid response: "
  message << "#{command.command_name}: "
  message << "#{error_message}: "
  message << "<#{command.to_command_format}>: "
  message << "<#{raw_response}>"
  super(message)
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



38
39
40
# File 'lib/groonga/client/error.rb', line 38

def command
  @command
end

#raw_responseObject (readonly)

Returns the value of attribute raw_response.



39
40
41
# File 'lib/groonga/client/error.rb', line 39

def raw_response
  @raw_response
end