Exception: Droonga::Serf::Command::Failure
- Defined in:
- lib/droonga/serf/command.rb
Instance Attribute Summary collapse
-
#command_line ⇒ Object
readonly
Returns the value of attribute command_line.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#exit_status ⇒ Object
readonly
Returns the value of attribute exit_status.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(command_line, exit_status, output, error) ⇒ Failure
constructor
A new instance of Failure.
Constructor Details
#initialize(command_line, exit_status, output, error) ⇒ Failure
Returns a new instance of Failure.
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/droonga/serf/command.rb', line 26 def initialize(command_line, exit_status, output, error) @command_line = command_line @exit_status = exit_status @output = output @error = error = "Failed to run serf: (#{@exit_status}): " << "#{@error.strip}[#{@output.strip}]: " << @command_line.join(" ") super() end |
Instance Attribute Details
#command_line ⇒ Object (readonly)
Returns the value of attribute command_line.
25 26 27 |
# File 'lib/droonga/serf/command.rb', line 25 def command_line @command_line end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
25 26 27 |
# File 'lib/droonga/serf/command.rb', line 25 def error @error end |
#exit_status ⇒ Object (readonly)
Returns the value of attribute exit_status.
25 26 27 |
# File 'lib/droonga/serf/command.rb', line 25 def exit_status @exit_status end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
25 26 27 |
# File 'lib/droonga/serf/command.rb', line 25 def output @output end |