Class: Fog::Hyperv::Errors::PSError

Inherits:
ServiceError
  • Object
show all
Defined in:
lib/fog/hyperv.rb

Overview

A powershell call failed

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(output, info) ⇒ PSError

Returns a new instance of PSError.



41
42
43
44
45
46
47
48
49
# File 'lib/fog/hyperv.rb', line 41

def initialize(output, info)
  @stdout = output.stdout
  @stderr = output.stderr
  @exitcode = output.exitcode
  @info = info
  extract_message

  super(@message)
end

Instance Attribute Details

#exitcodeObject (readonly)

Returns the value of attribute exitcode.



39
40
41
# File 'lib/fog/hyperv.rb', line 39

def exitcode
  @exitcode
end

#infoObject (readonly)

Returns the value of attribute info.



39
40
41
# File 'lib/fog/hyperv.rb', line 39

def info
  @info
end

#messageObject (readonly)

Returns the value of attribute message.



39
40
41
# File 'lib/fog/hyperv.rb', line 39

def message
  @message
end

#stderrObject (readonly)

Returns the value of attribute stderr.



39
40
41
# File 'lib/fog/hyperv.rb', line 39

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



39
40
41
# File 'lib/fog/hyperv.rb', line 39

def stdout
  @stdout
end