/** @deprecated deprecated in 3.1.0, use {@link #create(Code, String)} instead */ @Deprecated public static KeeperException create(int code, String path) { KeeperException r = create(Code.get(code)); r.path = path; return r; }
/** @deprecated deprecated in 3.1.0, use {@link #create(Code)} instead */ @Deprecated public static KeeperException create(int code) { return create(Code.get(code)); }
/** * Set the code for this exception * * @param code error code * @deprecated deprecated in 3.1.0, exceptions should be immutable, this method should not be used */ @Deprecated public void setCode(int code) { this.code = Code.get(code); }