From 02d918d0a4a8e528e753057014e40c653085a78d Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Thu, 16 Feb 2023 15:03:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B7=A5=E5=8E=82=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E7=9A=84=E9=87=8D=E8=BD=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../exception/AccountLoginException.java | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/plusone-system/plusone-system-application/src/main/java/xyz/zhouxy/plusone/system/application/exception/AccountLoginException.java b/plusone-system/plusone-system-application/src/main/java/xyz/zhouxy/plusone/system/application/exception/AccountLoginException.java index 8edc3e2..106cbea 100644 --- a/plusone-system/plusone-system-application/src/main/java/xyz/zhouxy/plusone/system/application/exception/AccountLoginException.java +++ b/plusone-system/plusone-system-application/src/main/java/xyz/zhouxy/plusone/system/application/exception/AccountLoginException.java @@ -21,18 +21,34 @@ public class AccountLoginException extends PlusoneException { } public static AccountLoginException accountNotExistException() { - return new AccountLoginException(4030101, "用户账户不存在"); + return accountNotExistException("用户账户不存在"); + } + + public static AccountLoginException accountNotExistException(String msg) { + return new AccountLoginException(4030101, msg); } public static AccountLoginException otpErrorException() { - return new AccountLoginException(4030501, "验证码错误"); + return otpErrorException("验证码错误"); + } + + public static AccountLoginException otpErrorException(String msg) { + return new AccountLoginException(4030501, msg); } public static AccountLoginException otpNotExistsException() { - return new AccountLoginException(4030502, "验证码不存在或已过期"); + return otpNotExistsException("验证码不存在或已过期"); + } + + public static AccountLoginException otpNotExistsException(String msg) { + return new AccountLoginException(4030502, msg); } public static AccountLoginException passwordErrorException() { - return new AccountLoginException(4030200, "用户密码错误"); + return passwordErrorException("用户密码错误"); + } + + public static AccountLoginException passwordErrorException(String msg) { + return new AccountLoginException(4030200, msg); } }