goupan
2024-04-03 5506e9a45e717ffcb67ec313b5a4e8206d9b3a39
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package cn.stylefeng.rest.core.exception;
 
import cn.stylefeng.roses.kernel.rule.exception.AbstractExceptionEnum;
import cn.stylefeng.roses.kernel.rule.exception.base.ServiceException;
 
import static cn.stylefeng.rest.core.consts.ProjectConstants.PROJECT_MODULE_NAME;
 
/**
 * 业务异常
 *
 * @author fengshuonan
 * @since 2020/12/16 14:26
 */
public class BusinessException extends ServiceException {
 
    public BusinessException(AbstractExceptionEnum exception, String userTip) {
        super(PROJECT_MODULE_NAME, exception.getErrorCode(), userTip);
    }
 
    public BusinessException(AbstractExceptionEnum exception) {
        super(PROJECT_MODULE_NAME, exception);
    }
 
}