Exception: PSRP::WMIError

Inherits:
PSRPError
  • Object
show all
Defined in:
lib/response_handler.rb

Overview

A Fault returned in the SOAP response. The XML node is a MSFT_WmiError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error, error_code) ⇒ WMIError

Returns a new instance of WMIError.



44
45
46
47
48
# File 'lib/response_handler.rb', line 44

def initialize(error, error_code)
  @error = error
  @error_code = error_code
  super("[WMI ERROR CODE: #{error_code}]: #{error}")
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



42
43
44
# File 'lib/response_handler.rb', line 42

def error
  @error
end

#error_codeObject (readonly)

Returns the value of attribute error_code.



41
42
43
# File 'lib/response_handler.rb', line 41

def error_code
  @error_code
end