BusinessException.java
458 Bytes
package com.dituhui.pea.exception;
import com.dituhui.pea.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;
}
}