kyuubi-relocated-zookeeper-parent/kyuubi-relocated-zookeeper-34/src/main/java/org/apache/zookeeper/KeeperException.java [344:392]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      default:
        return "Unknown error " + code;
    }
  }

  private Code code;

  private String path;

  public KeeperException(Code code) {
    this.code = code;
  }

  KeeperException(Code code, String path) {
    this.code = code;
    this.path = path;
  }

  /**
   * Read the error code for this exception
   *
   * @return the error code for this exception
   * @deprecated deprecated in 3.1.0, use {@link #code()} instead
   */
  @Deprecated
  public int getCode() {
    return code.code;
  }

  /**
   * Read the error Code for this exception
   *
   * @return the error Code for this exception
   */
  public Code code() {
    return code;
  }

  /**
   * Read the path for this exception
   *
   * @return the path associated with this error, null if none
   */
  public String getPath() {
    return path;
  }

  @Override
  public String getMessage() {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



kyuubi-relocated-zookeeper-parent/kyuubi-relocated-zookeeper-36/src/main/java/org/apache/zookeeper/KeeperException.java [414:462]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      default:
        return "Unknown error " + code;
    }
  }

  private Code code;

  private String path;

  public KeeperException(Code code) {
    this.code = code;
  }

  KeeperException(Code code, String path) {
    this.code = code;
    this.path = path;
  }

  /**
   * Read the error code for this exception
   *
   * @return the error code for this exception
   * @deprecated deprecated in 3.1.0, use {@link #code()} instead
   */
  @Deprecated
  public int getCode() {
    return code.code;
  }

  /**
   * Read the error Code for this exception
   *
   * @return the error Code for this exception
   */
  public Code code() {
    return code;
  }

  /**
   * Read the path for this exception
   *
   * @return the path associated with this error, null if none
   */
  public String getPath() {
    return path;
  }

  @Override
  public String getMessage() {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



