/** * Get the error associated with the last Native Unix Operation * * @return String error message */ public String getLastUnixError() { if (!hasUnixSupport()) { return "Native Unix Support plugin not installed"; } return nativeUnixSupport.getLastError(); }
/** * Get the error associated with the last Native Unix Operation * * @return String error message */ public String getLastWindowsError() { if (!hasUnixSupport()) { return "Native Windows Support plugin not installed"; } return nativeWindowsSupport.getLastError(); }
private void ensureUnixSupport(NativeFunction function) throws NativeAccessException { if (!hasUnixSupport()) { throw new NativeAccessException("Native Unix Support plugin not installed"); } if (!nativeUnixSupport.hasSupportFor(function)) { throw new NativeAccessException("Installed Native Unix Support plugin does not support " + function); } }