ParsingException.java 444 B

1234567891011121314151617181920
  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. */
  13. private int errorCode;
  14. public ParsingException(String message, int errorCode) {
  15. super(message);
  16. this.errorCode = errorCode;
  17. }
  18. }