Class: VagrantPlugins::HostShell::Errors::NonZeroStatusError

Inherits:
VagrantHostShellError
  • Object
show all
Defined in:
lib/vagrant-host-shell/errors.rb

Instance Method Summary collapse

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_messageObject



12
13
14
# File 'lib/vagrant-host-shell/errors.rb', line 12

def error_message 
  "Command [#{@command}] exited with non-zero status [#{@exit_code}]"
end