Class Facter::Util::Windows::Error
In: lib/facter/util/windows/error.rb
Parent: RuntimeError

represents an error resulting from a Win32 error code

Methods

Constants

ERROR_FILE_NOT_FOUND = 2
ERROR_ACCESS_DENIED = 5
FORMAT_MESSAGE_ALLOCATE_BUFFER = 0x00000100
FORMAT_MESSAGE_IGNORE_INSERTS = 0x00000200
FORMAT_MESSAGE_FROM_SYSTEM = 0x00001000
FORMAT_MESSAGE_ARGUMENT_ARRAY = 0x00002000
FORMAT_MESSAGE_MAX_WIDTH_MASK = 0x000000FF

Attributes

code  [R] 
original  [R] 

Public Class methods

Helper method that wraps FormatMessage that returns a human readable string.

NOTE: FFI.errno only works properly when prior Win32 calls have been made through FFI bindings. Calls made through Win32API do not have their error codes captured by FFI.errno

[Validate]