admin
2019-02-22 e358583d644fa39fc1e93b14b3cafff3644980e4
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
38
39
40
41
42
43
44
45
package org.fanli.facade.user.exception.money;
 
public class AlipayAccountException extends Exception {
 
    // 无余额
    public static int CODE_NO_MONEY = 1;
 
    // 提现次数超限
    public static int CODE_TIMES_LIMIT = 2;
 
    // 参数错误
    public static int CODE_NO_PARAMS = 3;
 
    // 已经被绑定
    public static int CODE_ALREADY_BIND = 4;
 
    /**
     * 支付宝账号异常
     */
    private static final long serialVersionUID = 1L;
    private int code;
    private String msg;
 
    public int getCode() {
        return code;
    }
 
    public String getMsg() {
        return msg;
    }
 
    public AlipayAccountException(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
 
    public AlipayAccountException() {
    }
 
    @Override
    public String getMessage() {
        return this.msg;
    }
 
}