com.sun.jna.platform.win32
Class Win32Exception
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sun.jna.platform.win32.Win32Exception
- All Implemented Interfaces:
- Serializable
public class Win32Exception
- extends RuntimeException
Win32 exception.
- Author:
- dblock[at]dblock[dot]org
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Win32Exception
public Win32Exception(WinNT.HRESULT hr)
- New Win32 exception from HRESULT.
- Parameters:
hr
- HRESULT
Win32Exception
public Win32Exception(int code)
- New Win32 exception from an error code, usually obtained from GetLastError.
- Parameters:
code
- Error code.
getHR
public WinNT.HRESULT getHR()
- Returns the error code of the error.
- Returns:
- Error code.
Copyright © 2007-2013 Timothy Wall. All Rights Reserved.