ParsingException.java 736 B

1234567891011121314151617181920212223242526272829
  1. package com.seecoder.dataanalysis.logic.parser;
  2. /**
  3. * @author miaomuzhi
  4. * @since 2022/2/15
  5. */
  6. public class ParsingException extends Exception{
  7. /**
  8. * 解析错误码
  9. * 0: 元日志格式错误
  10. * 1:日志格式错误
  11. * 2:不支持的日志操作码
  12. * 3: 缺少projectId主键,无法存储
  13. * 4: opType和数据内容不匹配
  14. */
  15. private int errorCode;
  16. private String rawJson;
  17. public ParsingException(String message, int errorCode) {
  18. super(message);
  19. this.errorCode = errorCode;
  20. }
  21. public ParsingException(String message, int errorCode, String rawJson) {
  22. super(message);
  23. this.errorCode = errorCode;
  24. this.rawJson = rawJson;
  25. }
  26. }