public enum FrameError extends Enum<FrameError>
Enum Constant and Description |
---|
INVALID_CHECKSUM |
INVALID_LENGTH |
INVALID_TYPE |
PAYLOAD_TOO_BIG |
STRING_ENTRY_TOO_BIG |
WRONG_REQUEST_ID |
WRONG_STATE |
Modifier and Type | Method and Description |
---|---|
static FrameError |
get(int id)
Retrieves the Frame Error for the given ID.
|
int |
getID()
Retrieves the Frame Error ID.
|
String |
getName()
Retrieves the Frame Error name.
|
String |
toString() |
static FrameError |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FrameError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FrameError INVALID_CHECKSUM
public static final FrameError INVALID_LENGTH
public static final FrameError INVALID_TYPE
public static final FrameError PAYLOAD_TOO_BIG
public static final FrameError STRING_ENTRY_TOO_BIG
public static final FrameError WRONG_REQUEST_ID
public static final FrameError WRONG_STATE
public static FrameError get(int id)
id
- ID to retrieve the Frame Error.public int getID()
public String toString()
toString
in class Enum<FrameError>
public static FrameError 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 FrameError[] values()
for (FrameError c : FrameError.values()) System.out.println(c);
© Copyright 2014 - 2024 Digi International Inc. All rights reserved.