easyexcel icon indicating copy to clipboard operation
easyexcel copied to clipboard

2.13最新版本日期转换异常的getRowIndex()和getColumnIndex()方法废弃了吗?

Open object360 opened this issue 7 years ago • 2 comments

异常代码

  `/**
     * 在转换异常 获取其他异常下会调用本接口。抛出异常则停止读取。如果这里不抛出异常则 继续读取下一行。
     *
     * @param exception
     * @param context
     * @throws Exception
     */
	@Override
    public void onException(Exception exception, AnalysisContext context) {
		
		ReadHolder currentReadHolder = context.currentReadHolder();
		
		if (exception instanceof ExcelDataConvertException) {
	        ExcelDataConvertException excelDataConvertException = (ExcelDataConvertException)exception;
	        LOGGER.error("第{}行,第{}列解析异常", excelDataConvertException.getRowIndex(),
	            excelDataConvertException.getColumnIndex());
	    }
	}`
`

异常提示 请提供完整的异常提示,记住是全部异常! 2.13最新版本日期转换异常的getRowIndex()和getColumnIndex()方法废弃了吗? API上有这两个方法,但实际使用这两个方法会编译错误

object360 avatar Nov 23 '19 13:11 object360

试了下,接口是好的 image 编译错误一般不会这样,如果只是idea报错的话可能是idea缓存问题, 试试File-invalidate caches/restart image

pdkst avatar Nov 23 '19 15:11 pdkst

请升级到 2.1.3

zhuangjiaju avatar Nov 27 '19 10:11 zhuangjiaju