shikeying
2024-02-23 1d6e7763f4a30272cc0818ea12f83697b7375c45
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.iplatform.base.exception;
 
import com.walker.infrastructure.ApplicationException;
 
/**
 * 登录异常提示定义。
 * <p>目前移动端需要使用,PC端也可重用该对象。</p>
 * @author 时克英
 * @date 2023-06-28
 */
public class LoginException extends ApplicationException {
 
    /**
     * 用户手机号未找到。
     * @return
     */
    public boolean isUserPhoneNotExist() {
        return userPhoneNotExist;
    }
 
    private boolean userPhoneNotExist = false;
 
    public LoginException(String msg){
        super(msg);
    }
 
    public LoginException(String msg, Throwable caution){
        super(msg, caution);
    }
 
    public LoginException(String msg, Throwable caution, boolean userPhoneNotExist){
        super(msg, caution);
        if(userPhoneNotExist){
            this.userPhoneNotExist = true;
        }
    }
}