shikeying
2024-01-11 3b67e947e36133e2a40eb2737b15ea375e157ea0
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
package com.walker.pay;
 
import com.walker.infrastructure.ApplicationException;
 
/**
 * 支付系统异常定义,业务需要捕获。
 * @author 时克英
 * @date 2023-01-16
 */
public class PayException extends ApplicationException {
 
    public PayException(String orderId, Throwable caution){
        super("支付异常,orderId = " + orderId, caution);
        this.orderId = orderId;
    }
    public PayException(String orderId, String msg, Throwable caution){
        super("支付异常,orderId = " + orderId + "," + msg, caution);
        this.orderId = orderId;
    }
 
    public String getOrderId() {
        return orderId;
    }
 
    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }
 
    private String orderId = null;
}