Exception: PSRP::WSManFault

Inherits:
PSRPError
  • Object
show all
Defined in:
lib/response_handler.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) ⇒ 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_codeObject (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_descriptionObject (readonly)

Returns the value of attribute fault_description.



30
31
32
# File 'lib/response_handler.rb', line 30

def fault_description
  @fault_description
end