public enum ECodeBadMatch extends Enum<ECodeBadMatch> implements ErrorCode
ErrorType.BAD_MATCH error type.| Enum Constant and Description |
|---|
BAD_DL_ADDR_MASK
Unsupported datalink address mask; Since 1.1.
|
BAD_FIELD
Unsupported field type in the match; Since 1.1.
|
BAD_LEN
Length problem in match; Since 1.1.
|
BAD_MASK
Unsupported mask specified in the match; Since 1.2.
|
BAD_NW_ADDR_MASK
Unsupported network address mask; Since 1.1.
|
BAD_PREREQ
A prerequisite was not met; Since 1.2.
|
BAD_TAG
Match uses an unsupported tag or encapsulation; Since 1.1.
|
BAD_TYPE
Unsupported match type specified by the match; Since 1.1.
|
BAD_VALUE
Unsupported value in a match field; Since 1.1.
|
BAD_WILDCARDS
Unsupported combination of fields masked or omitted in the match;
Since 1.1.
|
DUP_FIELD
A field type was duplicated; Since 1.2.
|
EPERM
Permissions error; Since 1.2.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode(ProtocolVersion pv)
Returns the code for the constant, under the given protocol
version.
|
ErrorType |
parentType()
Returns the parent error type for this error code.
|
static void |
validate(ECodeBadMatch code,
ProtocolVersion pv)
Validates the given error code against the specified protocol version,
silently returning if all is well, throwing an exception otherwise.
|
static ECodeBadMatch |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ECodeBadMatch[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ECodeBadMatch BAD_TYPE
public static final ECodeBadMatch BAD_LEN
public static final ECodeBadMatch BAD_TAG
public static final ECodeBadMatch BAD_DL_ADDR_MASK
public static final ECodeBadMatch BAD_NW_ADDR_MASK
public static final ECodeBadMatch BAD_WILDCARDS
public static final ECodeBadMatch BAD_FIELD
public static final ECodeBadMatch BAD_VALUE
public static final ECodeBadMatch BAD_MASK
public static final ECodeBadMatch BAD_PREREQ
public static final ECodeBadMatch DUP_FIELD
public static final ECodeBadMatch EPERM
public static ECodeBadMatch[] values()
for (ECodeBadMatch c : ECodeBadMatch.values()) System.out.println(c);
public static ECodeBadMatch 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 ErrorType parentType()
ErrorCodeparentType in interface ErrorCodepublic int getCode(ProtocolVersion pv)
OfpCodeBasedEnumgetCode in interface OfpCodeBasedEnumpv - the protocol versionpublic static void validate(ECodeBadMatch code, ProtocolVersion pv)
code - the codepv - the protocol versionVersionMismatchException - if the code is not defined in the
given protocol versionCopyright © 2014. All Rights Reserved.