From dd3aa3b8c759fd9935b9d22df04272c887e42f84 Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Wed, 19 Jul 2023 10:39:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zhouxy/plusone/commons/{exception => base}/IWithCode.java | 2 +- .../plusone/commons/{exception => base}/IWithIntCode.java | 4 +++- .../xyz/zhouxy/plusone/commons/exception/BaseException.java | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) rename src/main/java/xyz/zhouxy/plusone/commons/{exception => base}/IWithCode.java (95%) rename src/main/java/xyz/zhouxy/plusone/commons/{exception => base}/IWithIntCode.java (90%) 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; + /** * 带错误码的异常。 *