Exception: Bwrap::Execution::CommandNotFound

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

Overview

Thrown if given command was not found.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command:) ⇒ CommandNotFound

Returns a new instance of CommandNotFound.



29
30
31
32
33
34
# File 'lib/bwrap/execution/exceptions.rb', line 29

def initialize command:
  @command = command
  msg = "Failed to find #{command} from PATH."

  super msg
end

Instance Attribute Details

#commandObject (readonly)

Command that was looked at.



27
28
29
# File 'lib/bwrap/execution/exceptions.rb', line 27

def command
  @command
end