Top Description Fields Constructors Methods
com.sun.jna.platform.win32

public Class Win32Exception

extends LastErrorException
Class Inheritance
Imports
com.sun.jna.LastErrorException, com.sun.jna.platform.win32.WinNT.HRESULT, java.lang.reflect.InvocationTargetException, .Method, java.util.logging.Level, .Logger

Win32 exception.
Author
dblock[at]dblock[dot]org

Field Summary

Modifier and TypeField and Description
private WinNT.HRESULT
private static Method
private static final long

Constructor Summary

AccessConstructor and Description
public
Win32Exception(int
Error code.
code
)

New Win32 exception from an error code, usually obtained from GetLastError.

public
Win32Exception(WinNT.HRESULT
HRESULT
hr
)

New Win32 exception from HRESULT.

protected
protected
Win32Exception(int code, WinNT.HRESULT hr, String msg)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public WinNT.HRESULT

Returns:

HRESULT value
getHR
()

Returns the error code of the error.

Inherited from com.sun.jna.LastErrorException:
getErrorCode

Field Detail

_hrback to summary
private WinNT.HRESULT _hr
addSuppressedMethodback to summary
private static Method addSuppressedMethod
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.sun.jna.LastErrorException.serialVersionUID.

Constructor Detail

Win32Exceptionback to summary
public Win32Exception(int code)

New Win32 exception from an error code, usually obtained from GetLastError.

Parameters
code:int

Error code.

Win32Exceptionback to summary
public Win32Exception(WinNT.HRESULT hr)

New Win32 exception from HRESULT.

Parameters
hr:WinNT.HRESULT

HRESULT

Win32Exceptionback to summary
protected Win32Exception(int code, WinNT.HRESULT hr)
Win32Exceptionback to summary
protected Win32Exception(int code, WinNT.HRESULT hr, String msg)

Method Detail

addSuppressedReflectedback to summary
pack-priv void addSuppressedReflected(Throwable exception)
getHRback to summary
public WinNT.HRESULT getHR()

Returns the error code of the error.

Returns:WinNT.HRESULT

HRESULT value