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,
java.lang.String msg) |
|
Win32Exception(WinNT.HRESULT hr)
New Win32 exception from HRESULT.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addSuppressedReflected(java.lang.Throwable exception) |
WinNT.HRESULT |
getHR()
Returns the error code of the error.
|
getErrorCode
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, java.lang.String msg)
public WinNT.HRESULT getHR()
void addSuppressedReflected(java.lang.Throwable exception)