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