I'm unable to store the error getting registered in all the phases (parsing phase, business error, database error, invalid data error) in a csv file
Reason: The csv input row cannot be retrieved as the error method have only exception as parameter and not the actual csv row data. (Ex: parse exception alone has inputString method() and rest of the error handling phase doesn't have the input)
How to get the input row or the row being processed in all the stages of the spring batch job??
I need to create error csv with the following CSV row columns + line number + error message + reason