Class: VagrantPlugins::HostShell::Errors::NonZeroStatusError
- Inherits:
-
VagrantHostShellError
- Object
- Vagrant::Errors::VagrantError
- VagrantHostShellError
- VagrantPlugins::HostShell::Errors::NonZeroStatusError
- Defined in:
- lib/vagrant-host-shell/errors.rb
Instance Method Summary collapse
- #error_message ⇒ Object
-
#initialize(command, exit_code) ⇒ NonZeroStatusError
constructor
A new instance of NonZeroStatusError.
Constructor Details
#initialize(command, exit_code) ⇒ NonZeroStatusError
Returns a new instance of NonZeroStatusError.
6 7 8 9 10 |
# File 'lib/vagrant-host-shell/errors.rb', line 6 def initialize(command, exit_code) @command = command @exit_code = exit_code super nil end |
Instance Method Details
#error_message ⇒ Object
12 13 14 |
# File 'lib/vagrant-host-shell/errors.rb', line 12 def "Command [#{@command}] exited with non-zero status [#{@exit_code}]" end |