Method: WinRM::WinRMWMIError#initialize
- Defined in:
- lib/winrm/exceptions.rb
#initialize(error, error_code) ⇒ WinRMWMIError
Returns a new instance of WinRMWMIError.
72 73 74 75 76 |
# File 'lib/winrm/exceptions.rb', line 72 def initialize(error, error_code) @error = error @error_code = error_code super("[WMI ERROR CODE: #{error_code}]: #{error}") end |