Exception: WinRM::WinRMWMIError

Inherits:
WinRMError
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(error, error_code) ⇒ WinRMWMIError

Returns a new instance of WinRMWMIError.



60
61
62
63
64
# File 'lib/winrm/exceptions.rb', line 60

def initialize(error, error_code)
  @error = error
  @error_code = error_code
  super("[WMI ERROR CODE: #{error_code}]: #{error}")
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



58
59
60
# File 'lib/winrm/exceptions.rb', line 58

def error
  @error
end

#error_codeObject (readonly)

Returns the value of attribute error_code.



57
58
59
# File 'lib/winrm/exceptions.rb', line 57

def error_code
  @error_code
end