Files
weblog-springboot/weblog-module-common/src/main/java/com/hanserwei/common/exception/BizException.java
2025-11-26 20:24:31 +08:00

18 lines
458 B
Java

package com.hanserwei.common.exception;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class BizException extends RuntimeException {
// 异常码
private String errorCode;
// 错误信息
private String errorMsg;
public BizException(BaseExceptionInterface baseExceptionInterface) {
this.errorCode = baseExceptionInterface.getErrorCode();
this.errorMsg = baseExceptionInterface.getErrorMsg();
}
}