Exception: PSRP::WMIError
- 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
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(error, error_code) ⇒ WMIError
constructor
A new instance of WMIError.
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
#error ⇒ Object (readonly)
Returns the value of attribute error.
42 43 44 |
# File 'lib/response_handler.rb', line 42 def error @error end |
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
41 42 43 |
# File 'lib/response_handler.rb', line 41 def error_code @error_code end |