diff --git a/src/main/java/xyz/zhouxy/plusone/commons/exception/IWithCode.java b/src/main/java/xyz/zhouxy/plusone/commons/base/IWithCode.java similarity index 95% rename from src/main/java/xyz/zhouxy/plusone/commons/exception/IWithCode.java rename to src/main/java/xyz/zhouxy/plusone/commons/base/IWithCode.java index 3deeae8..5c1ecbc 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/exception/IWithCode.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/base/IWithCode.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package xyz.zhouxy.plusone.commons.exception; +package xyz.zhouxy.plusone.commons.base; import javax.annotation.Nonnull; diff --git a/src/main/java/xyz/zhouxy/plusone/commons/exception/IWithIntCode.java b/src/main/java/xyz/zhouxy/plusone/commons/base/IWithIntCode.java similarity index 90% rename from src/main/java/xyz/zhouxy/plusone/commons/exception/IWithIntCode.java rename to src/main/java/xyz/zhouxy/plusone/commons/base/IWithIntCode.java index a2258f8..480ab75 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/exception/IWithIntCode.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/base/IWithIntCode.java @@ -14,7 +14,9 @@ * limitations under the License. */ -package xyz.zhouxy.plusone.commons.exception; +package xyz.zhouxy.plusone.commons.base; + +import xyz.zhouxy.plusone.commons.exception.BaseException; /** * 规定实现类带有 {@code getCode} 方法。 diff --git a/src/main/java/xyz/zhouxy/plusone/commons/exception/BaseException.java b/src/main/java/xyz/zhouxy/plusone/commons/exception/BaseException.java index 33390ab..27bc36e 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/exception/BaseException.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/exception/BaseException.java @@ -16,6 +16,8 @@ package xyz.zhouxy.plusone.commons.exception; +import xyz.zhouxy.plusone.commons.base.IWithIntCode; + /** * 带错误码的异常。 *