Exception: PSRP::WSManFault
- Defined in:
- lib/response_handler.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) ⇒ WSManFault
constructor
A new instance of WSManFault.
Constructor Details
#initialize(fault_description, fault_code) ⇒ WSManFault
Returns a new instance of WSManFault.
32 33 34 35 36 |
# File 'lib/response_handler.rb', line 32 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.
29 30 31 |
# File 'lib/response_handler.rb', line 29 def fault_code @fault_code end |
#fault_description ⇒ Object (readonly)
Returns the value of attribute fault_description.
30 31 32 |
# File 'lib/response_handler.rb', line 30 def fault_description @fault_description end |