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;
|
//支付宝转账失败
|
public final static int CODE_ALIPAY_TRANSFER_FAILED =40;
|
|
private int code;
|
|
public int getCode() {
|
return code;
|
}
|
|
public UserCreditExchangeException(int code, String msg){
|
super(msg);
|
}
|
|
}
|