Exception: AwesomeSpawn::CommandResultError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/awesome_spawn/command_result_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, result) ⇒ CommandResultError

Returns a new instance of CommandResultError.



6
7
8
9
# File 'lib/awesome_spawn/command_result_error.rb', line 6

def initialize(message, result)
  super(message)
  @result = result
end

Instance Attribute Details

#resultCommandResult (readonly)

Returns The command that caused the error.

Returns:



4
5
6
# File 'lib/awesome_spawn/command_result_error.rb', line 4

def result
  @result
end