Package com.sun.jna.platform.win32
Class Win32Exception
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sun.jna.LastErrorException
com.sun.jna.platform.win32.Win32Exception
- All Implemented Interfaces:
- Serializable
Win32 exception.
- Author:
- dblock[at]dblock[dot]org
- See Also:
- 
Constructor SummaryConstructorsModifierConstructorDescriptionWin32Exception(int code) New Win32 exception from an error code, usually obtained fromGetLastError.protectedWin32Exception(int code, WinNT.HRESULT hr) protectedWin32Exception(int code, WinNT.HRESULT hr, String msg) New Win32 exception from HRESULT.
- 
Method SummaryModifier and TypeMethodDescription(package private) voidaddSuppressedReflected(Throwable exception) getHR()Returns the error code of the error.Methods inherited from class com.sun.jna.LastErrorExceptiongetErrorCodeMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
Win32Exceptionpublic Win32Exception(int code) New Win32 exception from an error code, usually obtained fromGetLastError.- Parameters:
- code- Error code.
 
- 
Win32ExceptionNew Win32 exception from HRESULT.- Parameters:
- hr- HRESULT
 
- 
Win32Exception
- 
Win32Exception
 
- 
- 
Method Details- 
getHRReturns the error code of the error.- Returns:
- HRESULT value
 
- 
addSuppressedReflected
 
-