parent
216cec0dfd
commit
cd76a52332
@ -0,0 +1,15 @@
|
|||||||
|
package cc.aspark.exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 账号不存在异常
|
||||||
|
*/
|
||||||
|
public class AccountNotFoundException extends BaseException {
|
||||||
|
|
||||||
|
public AccountNotFoundException() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public AccountNotFoundException(String msg) {
|
||||||
|
super(msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package cc.aspark.exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 业务异常
|
||||||
|
*/
|
||||||
|
public class BaseException extends RuntimeException {
|
||||||
|
|
||||||
|
public BaseException() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public BaseException(String msg) {
|
||||||
|
super(msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
package cc.aspark.exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 登录失败
|
||||||
|
*/
|
||||||
|
public class LoginFailedException extends BaseException{
|
||||||
|
public LoginFailedException(String msg){
|
||||||
|
super(msg);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package cc.aspark.exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 密码错误异常
|
||||||
|
*/
|
||||||
|
public class PasswordErrorException extends BaseException {
|
||||||
|
|
||||||
|
public PasswordErrorException() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public PasswordErrorException(String msg) {
|
||||||
|
super(msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
package cc.aspark.exception;
|
||||||
|
|
||||||
|
public class UserNotLoginException extends BaseException {
|
||||||
|
|
||||||
|
public UserNotLoginException() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public UserNotLoginException(String msg) {
|
||||||
|
super(msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in new issue