public class Win32Exception extends 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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public Win32Exception(WinNT.HRESULT hr)
hr
- HRESULTpublic Win32Exception(int code)
code
- Error code.public WinNT.HRESULT getHR()