Class: Fog::Hyperv::Errors::PSError
- Inherits:
-
ServiceError
- Object
- Errors::Error
- ServiceError
- Fog::Hyperv::Errors::PSError
- Defined in:
- lib/fog/hyperv.rb
Overview
A powershell call failed
Instance Attribute Summary collapse
-
#exitcode ⇒ Object
readonly
Returns the value of attribute exitcode.
-
#info ⇒ Object
readonly
Returns the value of attribute info.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(output, info) ⇒ PSError
constructor
A new instance of PSError.
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 super(@message) end |
Instance Attribute Details
#exitcode ⇒ Object (readonly)
Returns the value of attribute exitcode.
39 40 41 |
# File 'lib/fog/hyperv.rb', line 39 def exitcode @exitcode end |
#info ⇒ Object (readonly)
Returns the value of attribute info.
39 40 41 |
# File 'lib/fog/hyperv.rb', line 39 def info @info end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
39 40 41 |
# File 'lib/fog/hyperv.rb', line 39 def @message end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
39 40 41 |
# File 'lib/fog/hyperv.rb', line 39 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
39 40 41 |
# File 'lib/fog/hyperv.rb', line 39 def stdout @stdout end |