Package brendes.jna
Enum KK_Library.ErrorCode
java.lang.Object
java.lang.Enum<KK_Library.ErrorCode>
brendes.jna.KK_Library.ErrorCode
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<KK_Library.ErrorCode>
,java.lang.constant.Constable
- Enclosing class:
- KK_Library
public static enum KK_Library.ErrorCode extends java.lang.Enum<KK_Library.ErrorCode>
Defines result code values for class
KK_Library.KK_Result
- Author:
- Loryn
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description KK_CmdIgnored
Command rejected (no connection, waiting queue full)KK_Err
operation failedKK_Library.KK_Result.data
contains error messageKK_Err_BufferOverflow
Lost of data occurred.KK_Err_BufferTooSmall
String inKK_Library.KK_Result.data
truncated to 1024 characterKK_Err_DeviceNotConnected
Connection to K+K device is interrupted (no usb cable)KK_Err_Enum_PCAN
Enumeration of PCAN-USB devices failedKK_Library.KK_Result.data
contains error messageKK_Err_Enum_Serial
Enumeration of serial ports failedKK_Library.KK_Result.data
contains error messageKK_Err_Enum_Serial_USB
Enumeration of serial ports and USB devices failedKK_Library.KK_Result.data
contains error messageKK_Err_Enum_USB
Enumeration of USB devices failedKK_Library.KK_Result.data
contains error messageKK_Err_ServerDown
Connection to K+K server has broken, server is downKK_Library.KK_Result.data
contains error messageKK_Err_Write
Writing via current connection failedKK_Library.KK_Result.data
contains error messageKK_HardwareFault
K+K device does not send measurement data.KK_No_Err
successful operationKK_NotSupported
Requested function is not supported by K+K deviceKK_ParamError
Parameter in function call has invalid valueKK_Reconnected
Reconnection of an interrupted connection with data loss -
Method Summary
Modifier and Type Method Description static KK_Library.ErrorCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static KK_Library.ErrorCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
KK_No_Err
successful operation -
KK_Err
operation failedKK_Library.KK_Result.data
contains error message -
KK_Err_Enum_Serial
Enumeration of serial ports failedKK_Library.KK_Result.data
contains error message -
KK_Err_Enum_USB
Enumeration of USB devices failedKK_Library.KK_Result.data
contains error message -
KK_Err_Enum_Serial_USB
Enumeration of serial ports and USB devices failedKK_Library.KK_Result.data
contains error message -
KK_Err_Enum_PCAN
Enumeration of PCAN-USB devices failedKK_Library.KK_Result.data
contains error message -
KK_Err_BufferTooSmall
String inKK_Library.KK_Result.data
truncated to 1024 character -
KK_Err_BufferOverflow
Lost of data occurred. App does not read fast enough -
KK_Err_Write
Writing via current connection failedKK_Library.KK_Result.data
contains error message -
KK_Err_ServerDown
Connection to K+K server has broken, server is downKK_Library.KK_Result.data
contains error message -
KK_Err_DeviceNotConnected
Connection to K+K device is interrupted (no usb cable) -
KK_HardwareFault
K+K device does not send measurement data. Measurement hardware should be checked. Connection to K+K device is closed.KK_Library.KK_Result.data
contains error message -
KK_ParamError
Parameter in function call has invalid value -
KK_CmdIgnored
Command rejected (no connection, waiting queue full) -
KK_NotSupported
Requested function is not supported by K+K device -
KK_Reconnected
Reconnection of an interrupted connection with data loss- Since:
- 19.00.02
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-