Exception: WinRM::WinRMWSManFault

Inherits:
WinRMError
  • Object
show all
Defined in:
lib/winrm/exceptions.rb

Overview

A Fault returned in the SOAP response. The XML node is a WSManFault

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fault_description, fault_code) ⇒ WinRMWSManFault

Returns a new instance of WinRMWSManFault.



46
47
48
49
50
# File 'lib/winrm/exceptions.rb', line 46

def initialize(fault_description, fault_code)
  @fault_description = fault_description
  @fault_code = fault_code
  super("[WSMAN ERROR CODE: #{fault_code}]: #{fault_description}")
end

Instance Attribute Details

#fault_codeObject (readonly)

Returns the value of attribute fault_code.



43
44
45
# File 'lib/winrm/exceptions.rb', line 43

def fault_code
  @fault_code
end

#fault_descriptionObject (readonly)

Returns the value of attribute fault_description.



44
45
46
# File 'lib/winrm/exceptions.rb', line 44

def fault_description
  @fault_description
end