BusinessException.java 456 Bytes
package com.dituhui.mp.exception;

import com.dituhui.mp.enums.StatusCodeEnum;
import lombok.Data;

/**
 * 业务自定义异常
 * @author zl
 */
@Data
public class BusinessException extends RuntimeException {

    private static final long serialVersionUID = -6112780192479692859L;

    public StatusCodeEnum codeEnum;

    public BusinessException(StatusCodeEnum codeEnum) {
        super(codeEnum.getDesc());
        this.codeEnum = codeEnum;
    }

}