public enum ECodeBadRequest extends Enum<ECodeBadRequest> implements ErrorCode
ErrorType.BAD_REQUEST
error type.Enum Constant and Description |
---|
BAD_EXP_TYPE
Experimenter type not supported; Since 1.0.
|
BAD_EXPERIMENTER
Experimenter is not supported; Since 1.0.
|
BAD_LEN
Wrong request length for type; Since 1.0.
|
BAD_PACKET
Invalid packet in packet-out; Since 1.2.
|
BAD_PORT
Invalid port; Since 1.2.
|
BAD_STAT
OpenFlow Protocol Stats Request - type not supported; Since 1.0.
|
BAD_TABLE_ID
Specified table-id invalid or does not exist; Since 1.1.
|
BAD_TYPE
OpenFlow Protocol Header - type not supported; Since 1.0.
|
BAD_VERSION
OpenFlow Protocol Header - version not supported; Since 1.0.
|
BUFFER_EMPTY
Specified buffer has already been used; Since 1.0.
|
BUFFER_UNKNOWN
Specified buffer does not exist; Since 1.0.
|
EPERM
Permissions error; Since 1.0.
|
IS_SLAVE
Denied because controller is slave; Since 1.2.
|
MP_BUFFER_OVERFLOW
Multipart-Request overflowed the assigned buffer; Since 1.3.
|
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(ECodeBadRequest code,
ProtocolVersion pv)
Validates the given error code against the specified protocol version,
silently returning if all is well, throwing an exception otherwise.
|
static ECodeBadRequest |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ECodeBadRequest[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ECodeBadRequest BAD_VERSION
public static final ECodeBadRequest BAD_TYPE
public static final ECodeBadRequest BAD_STAT
public static final ECodeBadRequest BAD_EXPERIMENTER
BAD_VENDOR
at 1.1.)public static final ECodeBadRequest BAD_EXP_TYPE
BAD_SUBTYPE
at 1.2.)public static final ECodeBadRequest EPERM
public static final ECodeBadRequest BAD_LEN
public static final ECodeBadRequest BUFFER_EMPTY
public static final ECodeBadRequest BUFFER_UNKNOWN
public static final ECodeBadRequest BAD_TABLE_ID
public static final ECodeBadRequest IS_SLAVE
public static final ECodeBadRequest BAD_PORT
public static final ECodeBadRequest BAD_PACKET
public static final ECodeBadRequest MP_BUFFER_OVERFLOW
public static ECodeBadRequest[] values()
for (ECodeBadRequest c : ECodeBadRequest.values()) System.out.println(c);
public static ECodeBadRequest 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(ECodeBadRequest code, ProtocolVersion pv)
code
- the codepv
- the protocol versionVersionMismatchException
- if the code is not defined in the
given protocol versionCopyright © 2015. All Rights Reserved.