Exception: WinRM::WinRMWSManFault

Inherits:
WinRMError
  • Object
show all
Defined in:
lib/winrm/exceptions/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.



29
30
31
32
33
# File 'lib/winrm/exceptions/exceptions.rb', line 29

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.



26
27
28
# File 'lib/winrm/exceptions/exceptions.rb', line 26

def fault_code
  @fault_code
end

#fault_descriptionObject (readonly)

Returns the value of attribute fault_description.



27
28
29
# File 'lib/winrm/exceptions/exceptions.rb', line 27

def fault_description
  @fault_description
end