Exception: Puppet::Util::Windows::Error
- Includes:
- Windows::Error
- Defined in:
- lib/vendor/puppet/util/windows/error.rb
Overview
represents an error resulting from a Win32 error code
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, code = GetLastError.call) ⇒ Error
constructor
A new instance of Error.
Methods inherited from Error
Constructor Details
#initialize(message, code = GetLastError.call) ⇒ Error
Returns a new instance of Error.
10 11 12 13 14 |
# File 'lib/vendor/puppet/util/windows/error.rb', line 10 def initialize(, code = GetLastError.call) super( + ": #{get_last_error(code)}") @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
8 9 10 |
# File 'lib/vendor/puppet/util/windows/error.rb', line 8 def code @code end |