public class Win32Exception
extends java.lang.RuntimeException
Constructor and Description |
---|
Win32Exception(int code)
New Win32 exception from an error code, usually obtained from GetLastError.
|
Win32Exception(WinNT.HRESULT hr)
New Win32 exception from HRESULT.
|
Modifier and Type | Method and Description |
---|---|
WinNT.HRESULT |
getHR()
Returns the error code of the error.
|
public Win32Exception(WinNT.HRESULT hr)
hr
- HRESULTpublic Win32Exception(int code)
code
- Error code.public WinNT.HRESULT getHR()