Class: Vagrant::LXC::Errors::ExecuteError

Inherits:
Errors::VagrantError
  • Object
show all
Defined in:
lib/vagrant-lxc/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, *args) ⇒ ExecuteError

Returns a new instance of ExecuteError.



9
10
11
12
13
14
15
16
# File 'lib/vagrant-lxc/errors.rb', line 9

def initialize(message, *args)
  super
  if message.is_a?(Hash)
    @stderr = message[:stderr]
    @stdout = message[:stdout]
    @exitcode = message[:exitcode]
  end
end

Instance Attribute Details

#exitcodeObject (readonly)

Returns the value of attribute exitcode.



8
9
10
# File 'lib/vagrant-lxc/errors.rb', line 8

def exitcode
  @exitcode
end

#stderrObject (readonly)

Returns the value of attribute stderr.



8
9
10
# File 'lib/vagrant-lxc/errors.rb', line 8

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



8
9
10
# File 'lib/vagrant-lxc/errors.rb', line 8

def stdout
  @stdout
end