Exception: WinRM::WinRMSoapFault
- Inherits:
-
WinRMError
- Object
- StandardError
- WinRMError
- WinRM::WinRMSoapFault
- 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
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#subcode ⇒ Object
readonly
Returns the value of attribute subcode.
Instance Method Summary collapse
-
#initialize(code, subcode, reason) ⇒ WinRMSoapFault
constructor
A new instance of WinRMSoapFault.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
55 56 57 |
# File 'lib/winrm/exceptions.rb', line 55 def code @code end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
57 58 59 |
# File 'lib/winrm/exceptions.rb', line 57 def reason @reason end |
#subcode ⇒ Object (readonly)
Returns the value of attribute subcode.
56 57 58 |
# File 'lib/winrm/exceptions.rb', line 56 def subcode @subcode end |