This commit is contained in:
2023-03-04 16:29:55 +08:00
commit 397ba75479
1007 changed files with 109050 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
package com.jsowell.common.exception.user;
/**
* 验证码错误异常类
*
* @author jsowell
*/
public class CaptchaException extends UserException {
private static final long serialVersionUID = 1L;
public CaptchaException() {
super("user.jcaptcha.error", null);
}
}

View File

@@ -0,0 +1,14 @@
package com.jsowell.common.exception.user;
/**
* 验证码失效异常类
*
* @author jsowell
*/
public class CaptchaExpireException extends UserException {
private static final long serialVersionUID = 1L;
public CaptchaExpireException() {
super("user.jcaptcha.expire", null);
}
}

View File

@@ -0,0 +1,16 @@
package com.jsowell.common.exception.user;
import com.jsowell.common.exception.base.BaseException;
/**
* 用户信息异常类
*
* @author jsowell
*/
public class UserException extends BaseException {
private static final long serialVersionUID = 1L;
public UserException(String code, Object[] args) {
super("user", code, args, null);
}
}

View File

@@ -0,0 +1,14 @@
package com.jsowell.common.exception.user;
/**
* 用户密码不正确或不符合规范异常类
*
* @author jsowell
*/
public class UserPasswordNotMatchException extends UserException {
private static final long serialVersionUID = 1L;
public UserPasswordNotMatchException() {
super("user.password.not.match", null);
}
}

View File

@@ -0,0 +1,14 @@
package com.jsowell.common.exception.user;
/**
* 用户错误最大次数异常类
*
* @author jsowell
*/
public class UserPasswordRetryLimitExceedException extends UserException {
private static final long serialVersionUID = 1L;
public UserPasswordRetryLimitExceedException(int retryLimitCount, int lockTime) {
super("user.password.retry.limit.exceed", new Object[]{retryLimitCount, lockTime});
}
}