I'm using Apache POI for Excel
operation.
I'm able to print what exception it is in Excel by writing a print statement in that particular catch()
block.
But I also want the reason for that exception
, like if there is elementNotFoundException
, then it should show particular ID/xpath
/...is not found.
So, if this is possible, then how to do this ?