对接支付开发
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package com.ruoyi.exceptions;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* 交易SDK提供的总的异常
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class TradeException extends RuntimeException{
|
||||
private String code;
|
||||
private String msg;
|
||||
|
||||
public TradeException(String code, String msg) {
|
||||
super(msg);
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public TradeException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user