package com.seecoder.dataanalysis.logic.parser; /** * @author miaomuzhi * @since 2022/2/15 */ public class ParsingException extends Exception{ /** * 解析错误码 * 0: 元日志格式错误 * 1:日志格式错误 * 2:不支持的日志操作码 * 3: 缺少projectId主键,无法存储 * 4: opType和数据内容不匹配 */ private int errorCode; private String rawJson; public ParsingException(String message, int errorCode) { super(message); this.errorCode = errorCode; } public ParsingException(String message, int errorCode, String rawJson) { super(message); this.errorCode = errorCode; this.rawJson = rawJson; } }