public enum ECodeBadInstruction extends Enum<ECodeBadInstruction> implements ErrorCode
ErrorType.BAD_INSTRUCTION
error type.Enum Constant and Description |
---|
BAD_EXP_TYPE
Unknown instruction for experimenter ID; Since 1.1.
|
BAD_EXPERIMENTER
Unknown experimenter ID specified; Since 1.2.
|
BAD_LEN
Length problem in instructions; Since 1.2.
|
BAD_TABLE_ID
Invalid table ID specified; Since 1.1.
|
EPERM
Permissions error; Since 1.2.
|
UNKNOWN_INST
Unknown instruction; Since 1.1.
|
UNSUP_INST
Switch or table does not support the instruction; Since 1.1.
|
UNSUP_METADATA
Metadata value unsupported by datapath; Since 1.1.
|
UNSUP_METADATA_MASK
Metadata mask value unsupported by datapath; 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(ECodeBadInstruction code,
ProtocolVersion pv)
Validates the given error code against the specified protocol version,
silently returning if all is well, throwing an exception otherwise.
|
static ECodeBadInstruction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ECodeBadInstruction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ECodeBadInstruction UNKNOWN_INST
public static final ECodeBadInstruction UNSUP_INST
public static final ECodeBadInstruction BAD_TABLE_ID
public static final ECodeBadInstruction UNSUP_METADATA
public static final ECodeBadInstruction UNSUP_METADATA_MASK
public static final ECodeBadInstruction BAD_EXPERIMENTER
public static final ECodeBadInstruction BAD_EXP_TYPE
UNSUP_EXP_INST
at 1.2.)public static final ECodeBadInstruction BAD_LEN
public static final ECodeBadInstruction EPERM
public static ECodeBadInstruction[] values()
for (ECodeBadInstruction c : ECodeBadInstruction.values()) System.out.println(c);
public static ECodeBadInstruction 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(ECodeBadInstruction code, ProtocolVersion pv)
code
- the codepv
- the protocol versionVersionMismatchException
- if the code is not defined in the
given protocol versionCopyright © 2015. All Rights Reserved.