Exception: Groonga::Client::ErrorResponse
- Defined in:
- lib/groonga/client/error.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ ErrorResponse
constructor
A new instance of ErrorResponse.
Constructor Details
#initialize(response) ⇒ ErrorResponse
Returns a new instance of ErrorResponse.
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/groonga/client/error.rb', line 24 def initialize(response) @response = response command = @response.command status_code = @response.status_code = @response. = "failed to execute: " << "#{command.command_name}: #{status_code}: " << "<#{}>: " << command.to_command_format super() end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
23 24 25 |
# File 'lib/groonga/client/error.rb', line 23 def response @response end |