Exception: WinRM::WinRMWMIError
- Inherits:
-
WinRMError
- Object
- StandardError
- WinRMError
- WinRM::WinRMWMIError
- Defined in:
- lib/winrm/exceptions.rb
Overview
A Fault returned in the SOAP response. The XML node is a MSFT_WmiError
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(error, error_code) ⇒ WinRMWMIError
constructor
A new instance of WinRMWMIError.
Constructor Details
#initialize(error, error_code) ⇒ WinRMWMIError
Returns a new instance of WinRMWMIError.
72 73 74 75 76 |
# File 'lib/winrm/exceptions.rb', line 72 def initialize(error, error_code) @error = error @error_code = error_code super("[WMI ERROR CODE: #{error_code}]: #{error}") end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
70 71 72 |
# File 'lib/winrm/exceptions.rb', line 70 def error @error end |
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
69 70 71 |
# File 'lib/winrm/exceptions.rb', line 69 def error_code @error_code end |