public enum ECodeBadAction extends Enum<ECodeBadAction> implements ErrorCode
ErrorType.BAD_ACTION
error type.Enum Constant and Description |
---|
BAD_ARGUMENT
Bad action argument; Since 1.0.
|
BAD_EXP_TYPE
Unknown action for experimenter id; Since 1.0.
|
BAD_EXPERIMENTER
Unknown experimenter id specified; Since 1.0.
|
BAD_LEN
Length problem in actions; Since 1.0.
|
BAD_OUT_GROUP
Invalid group id in forward action; Since 1.1.
|
BAD_OUT_PORT
Problem validating output port; Since 1.0.
|
BAD_QUEUE
Problem validating output queue; Since 1.0.
|
BAD_SET_ARGUMENT
Bad argument in Set-Field action; Since 1.2.
|
BAD_SET_LEN
Length problem in Set-Field action; Since 1.2.
|
BAD_SET_TYPE
Unsupported type in Set-Field action; Since 1.2.
|
BAD_TAG
Action uses an unsupported tag or encapsulation; Since 1.1.
|
BAD_TYPE
Unknown action type; Since 1.0.
|
EPERM
Permissions error; Since 1.0.
|
MATCH_INCONSISTENT
Action can’t apply for this match, or Set-Field missing
prerequisite; Since 1.1.
|
TOO_MANY
Can’t handle this many actions; Since 1.0.
|
UNSUPPORTED_ORDER
Action order is unsupported for the action list in an
Apply-Actions instruction; Since 1.1.
|
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(ECodeBadAction code,
ProtocolVersion pv)
Validates the given error code against the specified protocol version,
silently returning if all is well, throwing an exception otherwise.
|
static ECodeBadAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ECodeBadAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ECodeBadAction BAD_TYPE
public static final ECodeBadAction BAD_LEN
public static final ECodeBadAction BAD_EXPERIMENTER
BAD_VENDOR
at 1.1.)public static final ECodeBadAction BAD_EXP_TYPE
BAD_VENDOR_TYPE
at 1.1.)
(Renamed from BAD_EXPERIMENTER_TYPE
at 1.2)public static final ECodeBadAction BAD_OUT_PORT
public static final ECodeBadAction BAD_ARGUMENT
public static final ECodeBadAction EPERM
public static final ECodeBadAction TOO_MANY
public static final ECodeBadAction BAD_QUEUE
public static final ECodeBadAction BAD_OUT_GROUP
public static final ECodeBadAction MATCH_INCONSISTENT
public static final ECodeBadAction UNSUPPORTED_ORDER
public static final ECodeBadAction BAD_TAG
public static final ECodeBadAction BAD_SET_TYPE
public static final ECodeBadAction BAD_SET_LEN
public static final ECodeBadAction BAD_SET_ARGUMENT
public static ECodeBadAction[] values()
for (ECodeBadAction c : ECodeBadAction.values()) System.out.println(c);
public static ECodeBadAction 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()
ErrorCode
parentType
in interface ErrorCode
public int getCode(ProtocolVersion pv)
OfpCodeBasedEnum
getCode
in interface OfpCodeBasedEnum
pv
- the protocol versionpublic static void validate(ECodeBadAction code, ProtocolVersion pv)
code
- the codepv
- the protocol versionVersionMismatchException
- if the code is not defined in the
given protocol versionCopyright © 2015. All Rights Reserved.