com.kenai.jaffl
Class LastError

java.lang.Object
  extended by com.kenai.jaffl.LastError

public final class LastError
extends Object

Enables getting/setting of the unix errno and windows GetLastError() value


Method Summary
static int getLastError()
          Gets the value of errno from the last native call.
static void setLastError(int error)
          Sets the native errno value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.


Copyright © 2011. All Rights Reserved.