Exception: Roast::Workflow::CommandExecutor::CommandExecutionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/roast/workflow/command_executor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, command:, exit_status: nil, original_error: nil) ⇒ CommandExecutionError

Returns a new instance of CommandExecutionError.



9
10
11
12
13
14
# File 'lib/roast/workflow/command_executor.rb', line 9

def initialize(message, command:, exit_status: nil, original_error: nil)
  @command = command
  @exit_status = exit_status
  @original_error = original_error
  super(message)
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



7
8
9
# File 'lib/roast/workflow/command_executor.rb', line 7

def command
  @command
end

#exit_statusObject (readonly)

Returns the value of attribute exit_status.



7
8
9
# File 'lib/roast/workflow/command_executor.rb', line 7

def exit_status
  @exit_status
end

#original_errorObject (readonly)

Returns the value of attribute original_error.



7
8
9
# File 'lib/roast/workflow/command_executor.rb', line 7

def original_error
  @original_error
end

#outputObject (readonly)

Returns the value of attribute output.



7
8
9
# File 'lib/roast/workflow/command_executor.rb', line 7

def output
  @output
end