public class Win32Exception extends LastErrorException
Modifier | Constructor and Description |
---|---|
|
Win32Exception(int code)
New Win32 exception from an error code, usually obtained from
GetLastError. |
protected |
Win32Exception(int code,
WinNT.HRESULT hr) |
protected |
Win32Exception(int code,
WinNT.HRESULT hr,
String msg) |
|
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.
|
getErrorCode
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public Win32Exception(int code)
GetLastError.
code
- Error code.public Win32Exception(WinNT.HRESULT hr)
hr
- HRESULTprotected Win32Exception(int code, WinNT.HRESULT hr)
protected Win32Exception(int code, WinNT.HRESULT hr, String msg)
public WinNT.HRESULT getHR()