Top Description Fields Constructors Methods
com.sun.jna

public Class LastErrorException

extends RuntimeException
Class Inheritance

Exception representing a non-zero error code returned in either errno or GetLastError().

Field Summary

Modifier and TypeField and Description
private int
private static final long

Constructor Summary

AccessConstructor and Description
public
public
protected
LastErrorException(int code, String msg)

Method Summary

Modifier and TypeMethod and Description
private static String
formatMessage(int code)

public int

Returns:

The reported error code
getErrorCode
()

private static String

Field Detail

errorCodeback to summary
private int errorCode
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

LastErrorExceptionback to summary
public LastErrorException(String msg)
LastErrorExceptionback to summary
public LastErrorException(int code)
LastErrorExceptionback to summary
protected LastErrorException(int code, String msg)

Method Detail

formatMessageback to summary
private static String formatMessage(int code)
getErrorCodeback to summary
public int getErrorCode()
Returns:int

The reported error code

parseMessageback to summary
private static String parseMessage(String m)