Exception: Winreg::OSError

Inherits:
Error
  • Object
show all
Defined in:
lib/winreg.rb,
ext/winreg/winreg.c

Overview

A Windows API failure carries the originating error code (the LSTATUS / Win32 code), set on the exception in C.

Direct Known Subclasses

AccessDenied, KeyDeleted, NotFound

Instance Method Summary collapse

Instance Method Details

#codeObject



67
68
69
# File 'lib/winreg.rb', line 67

def code
  @code
end