public enum ModbusExceptionCode extends Enum<ModbusExceptionCode>
| Enum Constant and Description |
|---|
ACKNOWLEDGE |
GATEWAY_PATH_UNAVAILABLE |
GATEWAY_TARGET_DEVICE_FAILED_TO_RESPOND |
ILLEGAL_DATA_ADDRESS |
ILLEGAL_DATA_VALUE |
ILLEGAL_FUNCTION |
MEMORY_PARITY_ERROR |
NO_EXCEPTION |
SLAVE_DEVICE_BUSY |
SLAVE_DEVICE_FAILURE |
UNKNOWN_EXCEPTION |
| Modifier and Type | Method and Description |
|---|---|
static ModbusExceptionCode |
get(int value) |
int |
getValue() |
String |
toString() |
static ModbusExceptionCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ModbusExceptionCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModbusExceptionCode ILLEGAL_FUNCTION
public static final ModbusExceptionCode ILLEGAL_DATA_ADDRESS
public static final ModbusExceptionCode ILLEGAL_DATA_VALUE
public static final ModbusExceptionCode SLAVE_DEVICE_FAILURE
public static final ModbusExceptionCode ACKNOWLEDGE
public static final ModbusExceptionCode SLAVE_DEVICE_BUSY
public static final ModbusExceptionCode MEMORY_PARITY_ERROR
public static final ModbusExceptionCode GATEWAY_PATH_UNAVAILABLE
public static final ModbusExceptionCode GATEWAY_TARGET_DEVICE_FAILED_TO_RESPOND
public static final ModbusExceptionCode UNKNOWN_EXCEPTION
public static final ModbusExceptionCode NO_EXCEPTION
public static ModbusExceptionCode[] values()
for (ModbusExceptionCode c : ModbusExceptionCode.values()) System.out.println(c);
public static ModbusExceptionCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ModbusExceptionCode get(int value)
public int getValue()
public String toString()
toString in class Enum<ModbusExceptionCode>Copyright © 2018. All rights reserved.