增加BaseException
This commit is contained in:
parent
8927b3323f
commit
0c1607e01d
20
src/main/java/cn/zhangdeman/exception/BaseException.java
Normal file
20
src/main/java/cn/zhangdeman/exception/BaseException.java
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
@ -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 {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user