Exception: WinRM::WinRMWSManFault
- Inherits:
-
WinRMError
- Object
- StandardError
- WinRMError
- WinRM::WinRMWSManFault
- Defined in:
- lib/winrm/exceptions.rb
Overview
A Fault returned in the SOAP response. The XML node is a WSManFault
Instance Attribute Summary collapse
-
#fault_code ⇒ Object
readonly
Returns the value of attribute fault_code.
-
#fault_description ⇒ Object
readonly
Returns the value of attribute fault_description.
Instance Method Summary collapse
-
#initialize(fault_description, fault_code) ⇒ WinRMWSManFault
constructor
A new instance of WinRMWSManFault.
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_code ⇒ Object (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_description ⇒ Object (readonly)
Returns the value of attribute fault_description.
44 45 46 |
# File 'lib/winrm/exceptions.rb', line 44 def fault_description @fault_description end |