yeg
2 天以前 d8eaa16682cf180e9563d6be05fb43057daf6c07
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.talentcard.server.common;
 
public class BusinessException extends RuntimeException {
 
    private final ErrorCode errorCode;
 
    public BusinessException(ErrorCode errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }
 
    public ErrorCode errorCode() {
        return errorCode;
    }
}