Exception: Bwrap::Execution::ExecutionFailed

Inherits:
CommandError
  • Object
show all
Defined in:
lib/bwrap/execution/exceptions.rb

Overview

Signifies that command execution has failed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, command:, output:) ⇒ ExecutionFailed

Returns a new instance of ExecutionFailed.



16
17
18
19
20
21
# File 'lib/bwrap/execution/exceptions.rb', line 16

def initialize msg, command:, output:
  @command = command
  @output = output

  super msg
end

Instance Attribute Details

#commandObject (readonly)

The command that was executed.



11
12
13
# File 'lib/bwrap/execution/exceptions.rb', line 11

def command
  @command
end

#outputObject (readonly)

Output of the command.



14
15
16
# File 'lib/bwrap/execution/exceptions.rb', line 14

def output
  @output
end