增加BaseException

This commit is contained in:
白茶清欢 2025-06-15 18:45:37 +08:00
parent 8927b3323f
commit 0c1607e01d
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,20 @@
package cn.zhangdeman.exception;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
@Getter
@Setter
public class BaseException implements ICustomExceptionConfig {
private String code;
private String message;
private String category;
public BaseException(String code, String message, String category) {
setCode(code);
setMessage(message);
setCategory(category);
}
}

View File

@ -0,0 +1,13 @@
package cn.zhangdeman.logger;
import ch.qos.logback.classic.spi.ILoggingEvent;
import com.fasterxml.jackson.core.JsonGenerator;
import java.io.IOException;
public class DatabaseExecuteLogProvider extends BaseProvider {
@Override
public void writeTo(JsonGenerator jsonGenerator, ILoggingEvent loggingEvent) throws IOException {
}
}