shikeyin
2024-01-11 65da8373531677b1c37a98f53eaa30c892f35e5a
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;
        }
    }
}