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:
- java.io.Serializable
 
 public class Win32Exception extends LastErrorException Win32 exception.- Author:
- dblock[at]dblock[dot]org
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description Win32Exception(int code)New Win32 exception from an error code, usually obtained fromGetLastError.protectedWin32Exception(int code, WinNT.HRESULT hr)protectedWin32Exception(int code, WinNT.HRESULT hr, java.lang.String msg)Win32Exception(WinNT.HRESULT hr)New Win32 exception from HRESULT.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidaddSuppressedReflected(java.lang.Throwable exception)WinNT.HRESULTgetHR()Returns the error code of the error.- 
Methods inherited from class com.sun.jna.LastErrorExceptiongetErrorCode
 
- 
 
- 
- 
- 
Constructor Detail- 
Win32Exceptionpublic Win32Exception(int code) New Win32 exception from an error code, usually obtained fromGetLastError.- Parameters:
- code- Error code.
 
 - 
Win32Exceptionpublic Win32Exception(WinNT.HRESULT hr) New Win32 exception from HRESULT.- Parameters:
- hr- HRESULT
 
 - 
Win32Exceptionprotected Win32Exception(int code, WinNT.HRESULT hr)
 - 
Win32Exceptionprotected Win32Exception(int code, WinNT.HRESULT hr, java.lang.String msg)
 
- 
 - 
Method Detail- 
getHRpublic WinNT.HRESULT getHR() Returns the error code of the error.- Returns:
- HRESULT value
 
 - 
addSuppressedReflectedvoid addSuppressedReflected(java.lang.Throwable exception) 
 
- 
 
-