Exception: WmiLite::WmiException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- WmiLite::WmiException
- Defined in:
- lib/wmi-lite/wmi_exception.rb
Instance Method Summary collapse
-
#initialize(exception, wmi_method_context, namespace, query = nil, class_name = nil) ⇒ WmiException
constructor
A new instance of WmiException.
Constructor Details
#initialize(exception, wmi_method_context, namespace, query = nil, class_name = nil) ⇒ WmiException
Returns a new instance of WmiException.
21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/wmi-lite/wmi_exception.rb', line 21 def initialize(exception, wmi_method_context, namespace, query = nil, class_name = nil) = exception. error_code = translate_error_code() case wmi_method_context when :ConnectServer = (, error_code, namespace) when :ExecQuery = (, error_code, namespace, query, class_name) end super() end |