## Uses of Interface
com.h3c.of.lib.err.ErrorCode

- Packages that use ErrorCode
  Package | Description
  --- | ---
  com.h3c.of.lib.err | OpenFlow Error Type enumerations.
  com.h3c.of.lib.msg | Representations of OpenFlow Protocol Messages.
  com.h3c.of.sw | Provides mock implementations of OpenFlow switches.

- - ### Uses of ErrorCode in com.h3c.of.lib.err

    Classes in com.h3c.of.lib.err that implement ErrorCode
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ECodeBadAction` Designates the error codes associated with the `ErrorType.BAD_ACTION` error type.
    `class` | `ECodeBadInstruction` Designates the error codes associated with the `ErrorType.BAD_INSTRUCTION` error type.
    `class` | `ECodeBadMatch` Designates the error codes associated with the `ErrorType.BAD_MATCH` error type.
    `class` | `ECodeBadRequest` Designates the error codes associated with the `ErrorType.BAD_REQUEST` error type.
    `class` | `ECodeFlowModFailed` Designates the error codes associated with the `ErrorType.FLOW_MOD_FAILED` error type.
    `class` | `ECodeGroupModFailed` Designates the error codes associated with the `ErrorType.GROUP_MOD_FAILED` error type.
    `class` | `ECodeHelloFailed` Designates the error codes associated with the `ErrorType.HELLO_FAILED` error type.
    `class` | `ECodeMeterModFailed` Designates the error codes associated with the `ErrorType.METER_MOD_FAILED` error type.
    `class` | `ECodePortModFailed` Designates the error codes associated with the `ErrorType.PORT_MOD_FAILED` error type.
    `class` | `ECodeQueueOpFailed` Designates the error codes associated with the `ErrorType.QUEUE_OP_FAILED` error type.
    `class` | `ECodeRoleRequestFailed` Designates the error codes associated with the `ErrorType.ROLE_REQUEST_FAILED` error type.
    `class` | `ECodeSwitchConfigFailed` Designates the error codes associated with the `ErrorType.SWITCH_CONFIG_FAILED` error type.
    `class` | `ECodeTableFeaturesFailed` Designates the error codes associated with the `ErrorType.TABLE_FEATURES_FAILED` error type.
    `class` | `ECodeTableModFailed` Designates the error codes associated with the `ErrorType.TABLE_MOD_FAILED` error type.

    Methods in com.h3c.of.lib.err that return ErrorCode
    Modifier and Type | Method and Description
    --- | ---
    `static ErrorCode` | ErrorCodeLookup.`lookup(ErrorType type, int code, ProtocolVersion pv)` Looks up the error code constant for the given encoded value, based on the supplied high-level error type.

    Methods in com.h3c.of.lib.err that return types with arguments of type ErrorCode
    Modifier and Type | Method and Description
    --- | ---
    `static Class<? extends ErrorCode>` | ErrorCodeLookup.`codeClass(ErrorType type)` Returns the class of error code for the given error type.

    Methods in com.h3c.of.lib.err with parameters of type ErrorCode
    Modifier and Type | Method and Description
    --- | ---
    `static void` | ErrorCodeLookup.`validate(ErrorType type, ErrorCode code, ProtocolVersion pv)` Validates the error type/code combination for the specified protocol version, silently returning if all is well, or throwing an exception if the combination is invalid.

  - ### Uses of ErrorCode in com.h3c.of.lib.msg

    Methods in com.h3c.of.lib.msg that return ErrorCode
    Modifier and Type | Method and Description
    --- | ---
    `ErrorCode` | OfmError.`getErrorCode()` Returns the error code; Since 1.0.

    Methods in com.h3c.of.lib.msg with parameters of type ErrorCode
    Modifier and Type | Method and Description
    --- | ---
    `OfmMutableError` | OfmMutableError.`errorCode(ErrorCode code)` Sets the error code; Since 1.0.

  - ### Uses of ErrorCode in com.h3c.of.sw

    Methods in com.h3c.of.sw with parameters of type ErrorCode
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | MockOpenflowSwitch.`sendError(ErrorType et, ErrorCode ec, OpenflowMessage m)` Send an error message back to the controller.

Copyright © 2014. All Rights Reserved.