kyuubi-relocated-zookeeper-parent/kyuubi-relocated-zookeeper-34/src/main/java/org/apache/zookeeper/KeeperException.java [266:311]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private final int code;

    Code(int code) {
      this.code = code;
    }

    /**
     * Get the int value for a particular Code.
     *
     * @return error code as integer
     */
    public int intValue() {
      return code;
    }

    /**
     * Get the Code value for a particular integer error code
     *
     * @param code int error code
     * @return Code value corresponding to specified int code, if null throws
     *     IllegalArgumentException
     */
    public static Code get(int code) {
      Code codeVal = lookup.get(code);
      if (codeVal == null) {
        throw new IllegalArgumentException(
            "The current client version cannot lookup this code:" + code);
      }
      return codeVal;
    }
  }

  static String getCodeMessage(Code code) {
    switch (code) {
      case OK:
        return "ok";
      case SYSTEMERROR:
        return "SystemError";
      case RUNTIMEINCONSISTENCY:
        return "RuntimeInconsistency";
      case DATAINCONSISTENCY:
        return "DataInconsistency";
      case CONNECTIONLOSS:
        return "ConnectionLoss";
      case MARSHALLINGERROR:
        return "MarshallingError";
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



kyuubi-relocated-zookeeper-parent/kyuubi-relocated-zookeeper-36/src/main/java/org/apache/zookeeper/KeeperException.java [324:369]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private final int code;

    Code(int code) {
      this.code = code;
    }

    /**
     * Get the int value for a particular Code.
     *
     * @return error code as integer
     */
    public int intValue() {
      return code;
    }

    /**
     * Get the Code value for a particular integer error code
     *
     * @param code int error code
     * @return Code value corresponding to specified int code, if null throws
     *     IllegalArgumentException
     */
    public static Code get(int code) {
      Code codeVal = lookup.get(code);
      if (codeVal == null) {
        throw new IllegalArgumentException(
            "The current client version cannot lookup this code:" + code);
      }
      return codeVal;
    }
  }

  static String getCodeMessage(Code code) {
    switch (code) {
      case OK:
        return "ok";
      case SYSTEMERROR:
        return "SystemError";
      case RUNTIMEINCONSISTENCY:
        return "RuntimeInconsistency";
      case DATAINCONSISTENCY:
        return "DataInconsistency";
      case CONNECTIONLOSS:
        return "ConnectionLoss";
      case MARSHALLINGERROR:
        return "MarshallingError";
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



