Method: Puppet::Util::Windows::EventLog::EventLogError#initialize

Defined in:
lib/puppet/util/windows/eventlog.rb

#initialize(msg, code) ⇒ EventLogError

Returns a new instance of EventLogError.



120
121
122
123
# File 'lib/puppet/util/windows/eventlog.rb', line 120

def initialize(msg, code)
  # TRANSLATORS 'Win32' is the Windows API and should not be translated
  super(msg + ' ' + _("(Win32 error: %{detail})") % { detail: code })
end