com.kenai.jaffl

Class LastError

public final class LastError extends Object

Enables getting/setting of the unix errno and windows GetLastError() value
Method Summary
static intgetLastError()
Gets the value of errno from the last native call.
static voidsetLastError(int error)
Sets the native errno value.

Method Detail

getLastError

public static final int getLastError()
Gets the value of errno from the last native call.

Returns: An integer containing the errno value.

setLastError

public static final void setLastError(int error)
Sets the native errno value.

Parameters: error The value to set errno to.