I have an application in which I process 5,000 files up to 6,000 files during a cycle.
In the try and catch block, I read the excel file and process each individual cell.
Of course, all files are in the same format, but in some files the data in the cell can change, can contain data or not.
when an exception ever occurs when processing the 100th file, all processing stops and the exception is thrown,
But I do not want this scenario, instead, if there is an exception in the 100th file, the iteration should continue with the 101st file. And in the end, I have to know which file is being processed successfully and which is unsuccessful.
The exception I get is NumberFormatException
and NullPointerExceptions
How to convey this scenario?
source share