public static enum ProtocolException.Violation extends Enum<ProtocolException.Violation>
| Enum Constant and Description |
|---|
INVALID_PACKET_STRUCTURE |
UNEXPECTED_PACKET |
| Modifier and Type | Method and Description |
|---|---|
static ProtocolException.Violation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProtocolException.Violation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProtocolException.Violation INVALID_PACKET_STRUCTURE
public static final ProtocolException.Violation UNEXPECTED_PACKET
public static ProtocolException.Violation[] values()
for (ProtocolException.Violation c : ProtocolException.Violation.values()) System.out.println(c);
public static ProtocolException.Violation 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 nullCopyright © 2019. All rights reserved.