- java.lang.Object
-
- de.ibapl.jnhw.winapi.Winerror
-
@Include("winerror.h") public abstract class Winerror extends Object
Wrapper around the winerror.h header with the Systrem Error Codes.- Author:
- aploese
-
-
Field Summary
Fields Modifier and Type Field Description static intERROR_ACCESS_DENIEDAccess is denied.static intERROR_ALREADY_EXISTSCannot create a file when that file already exists.static intERROR_FILE_EXISTSThe file exists.static intERROR_FILE_NOT_FOUNDThe system cannot find the file specified.static intERROR_GEN_FAILUREThe system cannot read from the specified device.static intERROR_INVALID_HANDLEThe handle is invalid.static intERROR_INVALID_PARAMETERThe specified network password is not correct.static intERROR_IO_INCOMPLETEOverlapped I/O event is not in a signaled state.static intERROR_IO_PENDINGOverlapped I/O operation is in progress.static intERROR_MORE_DATAMore data is available.static intERROR_NO_MORE_ITEMSNo more data is available.static intERROR_NOACCESSInvalid access to memory location.static intERROR_NOT_FOUNDElement not found.static intERROR_PIPE_BUSYAll pipe instances are busy.static intERROR_PROC_NOT_FOUNDThe specified procedure could not be found.static intERROR_SHARING_VIOLATIONThe process cannot access the file because it is being used by another process.static intERROR_SUCCESSThe operation completed successfully.static intWAIT_TIMEOUTThe wait operation timed out.
-
Constructor Summary
Constructors Constructor Description Winerror()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetErrnoSymbol(int errno)Translate the native errno to its symbolic constant name.
-
-
-
Field Detail
-
ERROR_ACCESS_DENIED
@Define public static final int ERROR_ACCESS_DENIED
Access is denied.- See Also:
- Constant Field Values
-
ERROR_ALREADY_EXISTS
@Define public static final int ERROR_ALREADY_EXISTS
Cannot create a file when that file already exists.- See Also:
- Constant Field Values
-
ERROR_FILE_EXISTS
@Define public static final int ERROR_FILE_EXISTS
The file exists.- See Also:
- Constant Field Values
-
ERROR_FILE_NOT_FOUND
@Define public static final int ERROR_FILE_NOT_FOUND
The system cannot find the file specified.- See Also:
- Constant Field Values
-
ERROR_GEN_FAILURE
@Define public static final int ERROR_GEN_FAILURE
The system cannot read from the specified device.- See Also:
- Constant Field Values
-
ERROR_INVALID_HANDLE
@Define public static final int ERROR_INVALID_HANDLE
The handle is invalid.- See Also:
- Constant Field Values
-
ERROR_INVALID_PARAMETER
@Define public static final int ERROR_INVALID_PARAMETER
The specified network password is not correct.- See Also:
- Constant Field Values
-
ERROR_IO_INCOMPLETE
@Define public static final int ERROR_IO_INCOMPLETE
Overlapped I/O event is not in a signaled state.- See Also:
- Constant Field Values
-
ERROR_IO_PENDING
@Define public static final int ERROR_IO_PENDING
Overlapped I/O operation is in progress.- See Also:
- Constant Field Values
-
ERROR_MORE_DATA
@Define public static final int ERROR_MORE_DATA
More data is available.- See Also:
- Constant Field Values
-
ERROR_NO_MORE_ITEMS
@Define public static final int ERROR_NO_MORE_ITEMS
No more data is available.- See Also:
- Constant Field Values
-
ERROR_NOACCESS
@Define public static final int ERROR_NOACCESS
Invalid access to memory location.- See Also:
- Constant Field Values
-
ERROR_NOT_FOUND
@Define public static final int ERROR_NOT_FOUND
Element not found.- See Also:
- Constant Field Values
-
ERROR_PIPE_BUSY
@Define public static final int ERROR_PIPE_BUSY
All pipe instances are busy.- See Also:
- Constant Field Values
-
ERROR_PROC_NOT_FOUND
@Define public static final int ERROR_PROC_NOT_FOUND
The specified procedure could not be found.- See Also:
- Constant Field Values
-
ERROR_SHARING_VIOLATION
@Define public static final int ERROR_SHARING_VIOLATION
The process cannot access the file because it is being used by another process.- See Also:
- Constant Field Values
-
ERROR_SUCCESS
@Define public static final int ERROR_SUCCESS
The operation completed successfully.- See Also:
- Constant Field Values
-
WAIT_TIMEOUT
@Define public static final int WAIT_TIMEOUT
The wait operation timed out. WAIT_TIMEOUT The time-out interval elapsed, and the object's state is nonsignaled.- See Also:
- Constant Field Values
-
-
Method Detail
-
getErrnoSymbol
public static final String getErrnoSymbol(int errno)
Translate the native errno to its symbolic constant name.- Parameters:
errno-- Returns:
-
-