Sha256: d2dbeff03192fb9dc77ac697da667dbe0d14e05f524523360a94f01ca1c1a76f

Contents?: true

Size: 370 Bytes

Versions: 18

Compression:

Stored size: 370 Bytes

Contents

require 'puppet/util/windows'

# represents an error resulting from a Win32 error code
class Puppet::Util::Windows::Error < Puppet::Error
  require 'windows/error'
  include ::Windows::Error

  attr_reader :code

  def initialize(message, code = GetLastError.call, original = nil)
    super(message + ":  #{get_last_error(code)}", original)

    @code = code
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
puppet-3.6.2 lib/puppet/util/windows/error.rb
puppet-3.6.2-x86-mingw32 lib/puppet/util/windows/error.rb
puppet-3.6.1 lib/puppet/util/windows/error.rb
puppet-3.6.1-x86-mingw32 lib/puppet/util/windows/error.rb
puppet-3.6.0 lib/puppet/util/windows/error.rb
puppet-3.6.0-x86-mingw32 lib/puppet/util/windows/error.rb
puppet-3.6.0.rc1 lib/puppet/util/windows/error.rb
puppet-3.6.0.rc1-x86-mingw32 lib/puppet/util/windows/error.rb
puppet-3.5.1 lib/puppet/util/windows/error.rb
puppet-3.5.1-x86-mingw32 lib/puppet/util/windows/error.rb
puppet-3.5.1.rc1 lib/puppet/util/windows/error.rb
puppet-3.5.1.rc1-x86-mingw32 lib/puppet/util/windows/error.rb
puppet-3.5.0.rc3 lib/puppet/util/windows/error.rb
puppet-3.5.0.rc3-x86-mingw32 lib/puppet/util/windows/error.rb
puppet-3.5.0.rc2 lib/puppet/util/windows/error.rb
puppet-3.5.0.rc2-x86-mingw32 lib/puppet/util/windows/error.rb
puppet-3.5.0.rc1 lib/puppet/util/windows/error.rb
puppet-3.5.0.rc1-x86-mingw32 lib/puppet/util/windows/error.rb