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.



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

#errorObject (readonly)

Returns the value of attribute error.



70
71
72
# File 'lib/winrm/exceptions.rb', line 70

def error
  @error
end

#error_codeObject (readonly)

Returns the value of attribute error_code.



69
70
71
# File 'lib/winrm/exceptions.rb', line 69

def error_code
  @error_code
end