Lines Matching refs:lastError
40 private int lastError;
43 WindowsException(int lastError) {
44 this.lastError = lastError;
49 this.lastError = 0;
53 int lastError() {
54 return lastError;
59 msg = WindowsNativeDispatcher.FormatMessage(lastError);
61 msg = "Unknown error: 0x" + Integer.toHexString(lastError);
74 if (lastError() == 0)
78 if (lastError() == ERROR_FILE_NOT_FOUND || lastError() == ERROR_PATH_NOT_FOUND)
80 if (lastError() == ERROR_FILE_EXISTS || lastError() == ERROR_ALREADY_EXISTS)
82 if (lastError() == ERROR_ACCESS_DENIED)