Exception: Bwrap::Execution::CommandNotFound
- Inherits:
-
CommandError
- Object
- StandardError
- CommandError
- Bwrap::Execution::CommandNotFound
- Defined in:
- lib/bwrap/execution/exceptions.rb
Overview
Thrown if given command was not found.
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Command that was looked at.
Instance Method Summary collapse
-
#initialize(command:) ⇒ CommandNotFound
constructor
A new instance of CommandNotFound.
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
#command ⇒ Object (readonly)
Command that was looked at.
27 28 29 |
# File 'lib/bwrap/execution/exceptions.rb', line 27 def command @command end |