public enum ErrorType extends Enum<ErrorType> implements OfpCodeBasedEnum
Enum Constant and Description |
---|
BAD_ACTION
Error in action description; Since 1.0.
|
BAD_INSTRUCTION
Error in instruction list; Since 1.1.
|
BAD_MATCH
Error in match; Since 1.1.
|
BAD_REQUEST
Request was not understood; Since 1.0.
|
EXPERIMENTER
Experimenter error messages; Since 1.2.
|
FLOW_MOD_FAILED
Problem modifying flow entry; Since 1.0.
|
GROUP_MOD_FAILED
Problem modifying group entry; Since 1.1.
|
HELLO_FAILED
Hello protocol failed; Since 1.0.
|
METER_MOD_FAILED
Error in meter; Since 1.3.
|
PORT_MOD_FAILED
Port mod request failed; Since 1.0.
|
QUEUE_OP_FAILED
Queue operation failed; Since 1.0.
|
ROLE_REQUEST_FAILED
Controller Role request failed; Since 1.2.
|
SWITCH_CONFIG_FAILED
Switch config request failed; Since 1.1.
|
TABLE_FEATURES_FAILED
Setting table features failed; Since 1.3.
|
TABLE_MOD_FAILED
Table mod request failed; Since 1.1.
|
Modifier and Type | Method and Description |
---|---|
static ErrorType |
decode(int code,
ProtocolVersion pv)
Decodes the error type code and returns the corresponding
constant.
|
int |
getCode(ProtocolVersion pv)
Returns the code for the constant, under the given protocol
version.
|
static ErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorType HELLO_FAILED
public static final ErrorType BAD_REQUEST
public static final ErrorType BAD_ACTION
public static final ErrorType BAD_INSTRUCTION
public static final ErrorType BAD_MATCH
public static final ErrorType FLOW_MOD_FAILED
public static final ErrorType GROUP_MOD_FAILED
public static final ErrorType PORT_MOD_FAILED
public static final ErrorType TABLE_MOD_FAILED
public static final ErrorType QUEUE_OP_FAILED
public static final ErrorType SWITCH_CONFIG_FAILED
public static final ErrorType ROLE_REQUEST_FAILED
public static final ErrorType METER_MOD_FAILED
public static final ErrorType TABLE_FEATURES_FAILED
public static final ErrorType EXPERIMENTER
public static ErrorType[] values()
for (ErrorType c : ErrorType.values()) System.out.println(c);
public static ErrorType 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 int getCode(ProtocolVersion pv)
OfpCodeBasedEnum
getCode
in interface OfpCodeBasedEnum
pv
- the protocol versionpublic static ErrorType decode(int code, ProtocolVersion pv) throws DecodeException
code
- the encoded typepv
- the protocol versionDecodeException
- if the code is not recognizedVersionMismatchException
- if the error type is not
supported in the given versionCopyright © 2015. All Rights Reserved.