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
| package com.taoke.autopay.exception;
|
| /**
| * @author hxh
| * @title: 兑换异常
| * @description: 兑换异常
| * @date 2024/6/14 18:46
| */
| public class UserCreditExchangeException extends Exception{
| public final static int CODE_COMMON =1;
| // 余额不足
| public final static int CODE_BALANCE_NOT_ENOUGH =10;
| // 兑换频次受限
| public final static int CODE_EXCHANGE_FREQUENCY_LIMIT =20;
| // 没有绑定支付宝
| public final static int CODE_NOT_BIND_ALIPAY_ACCOUNT =30;
|
| private int code;
|
| public int getCode() {
| return code;
| }
|
| public UserCreditExchangeException(int code, String msg){
| super(msg);
| }
|
| }
|
|