public enum ResultCode extends java.lang.Enum<ResultCode>
| Enum Constant and Description |
|---|
busy
The device is busy.
|
connectFail
The connection to the device failed.
|
invalidAccessMode
The specified access mode is invalid.
|
invalidDevice
The specified device is invalid.
|
invalidEngine
The specified engine is invalid.
|
invalidModule
The specified module is invalid.
|
invalidParameter
The specified parameter is invalid.
|
invalidProtocol
The specified protocol is invalid.
|
invalidResponse
The response from the device was invalid.
|
noACK
No acknowledgement was received from the device.
|
noError
No error occurred.
|
notConnected
The device is not connected.
|
notSupported
The requested operation is not supported.
|
operationCancelled
The operation was cancelled.
|
outOfRange
The requested operation is out of range.
|
readOnly
The requested operation is read-only.
|
timeout
The request timed out.
|
undefined
The result code is undefined.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Returns the integer code of the result code.
|
java.lang.String |
toString()
Returns the string representation of the result code.
|
int |
value()
Returns the integer value of the result code.
|
static ResultCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ResultCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResultCode noError
public static final ResultCode timeout
public static final ResultCode noACK
public static final ResultCode connectFail
public static final ResultCode notConnected
public static final ResultCode invalidResponse
public static final ResultCode invalidModule
public static final ResultCode invalidDevice
public static final ResultCode invalidEngine
public static final ResultCode invalidProtocol
public static final ResultCode invalidAccessMode
public static final ResultCode invalidParameter
public static final ResultCode notSupported
public static final ResultCode busy
public static final ResultCode readOnly
public static final ResultCode outOfRange
public static final ResultCode operationCancelled
public static final ResultCode undefined
public static ResultCode[] values()
for (ResultCode c : ResultCode.values()) System.out.println(c);
public static ResultCode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int value()
public int getCode()
public java.lang.String toString()
toString in class java.lang.Enum<ResultCode>