Exception: WinRM::WinRMSoapFault

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

Overview

A Fault returned in the SOAP response. The XML node contains Code, SubCode and Reason

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, subcode, reason) ⇒ WinRMSoapFault

Returns a new instance of WinRMSoapFault.


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

def initialize(code, subcode, reason)
  @code = code
  @subcode = subcode
  @reason = reason
  super("[SOAP ERROR CODE: #{code} (#{subcode})]: #{reason}")
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code


55
56
57
# File 'lib/winrm/exceptions.rb', line 55

def code
  @code
end

#reasonObject (readonly)

Returns the value of attribute reason


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

def reason
  @reason
end

#subcodeObject (readonly)

Returns the value of attribute subcode


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

def subcode
  @subcode
end