Sha256: e27b541619866b15497d1f27b42127319c612190f2dfb56a73358e100243fc78

Contents?: true

Size: 344 Bytes

Versions: 54

Compression:

Stored size: 344 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)
    super(message + ":  #{get_last_error(code)}")

    @code = code
  end
end

Version data entries

54 entries across 54 versions & 3 rubygems

Version Path
puppet-parse-0.1.4 lib/vendor/puppet/util/windows/error.rb
puppet-parse-0.1.3 lib/vendor/puppet/util/windows/error.rb
puppet-parse-0.1.2 lib/vendor/puppet/util/windows/error.rb
puppet-parse-0.1.1 lib/vendor/puppet/util/windows/error.rb
puppet-2.7.26 lib/puppet/util/windows/error.rb
puppet-3.4.3 lib/puppet/util/windows/error.rb
puppet-2.7.25 lib/puppet/util/windows/error.rb
puppet-3.4.2 lib/puppet/util/windows/error.rb
puppet-2.7.24 lib/puppet/util/windows/error.rb
puppet-3.4.1 lib/puppet/util/windows/error.rb
puppet-3.4.0 lib/puppet/util/windows/error.rb
puppet-3.4.0.rc2 lib/puppet/util/windows/error.rb
puppet-3.4.0.rc1 lib/puppet/util/windows/error.rb
puppet-3.3.2 lib/puppet/util/windows/error.rb
puppet-3.3.1 lib/puppet/util/windows/error.rb
puppet-3.3.1.rc3 lib/puppet/util/windows/error.rb
puppet-3.3.1.rc2 lib/puppet/util/windows/error.rb
puppet-3.3.1.rc1 lib/puppet/util/windows/error.rb
puppet-3.3.0 lib/puppet/util/windows/error.rb
puppet-3.3.0.rc3 lib/puppet/util/windows/error.rb