public enum ErrorTypes extends java.lang.Enum<ErrorTypes>
Enum Constant and Description |
---|
MOTOR_FAULT |
TIMEOUT |
UNINITIALIZED_FEEDER |
UNKNOWN |
WRONG_FEEDER_UUID |
Modifier and Type | Method and Description |
---|---|
static ErrorTypes |
fromId(int id) |
int |
getId() |
static ErrorTypes |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ErrorTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorTypes WRONG_FEEDER_UUID
public static final ErrorTypes MOTOR_FAULT
public static final ErrorTypes UNINITIALIZED_FEEDER
public static final ErrorTypes TIMEOUT
public static final ErrorTypes UNKNOWN
public static ErrorTypes[] values()
for (ErrorTypes c : ErrorTypes.values()) System.out.println(c);
public static ErrorTypes 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 static ErrorTypes fromId(int id)
public int getId()