I have a list of 1132 records and the record at 646 breaks and threw an exception when it tries to convert a invalid string to double. And the code halts and my pageblocktable displays 645 records. Is that possible to continue the execution after an exception thrown just omitting the error records in the way?
In the below screen shot, it stops at 645th record though it is having 1132 in total.
Best Answer
Not sure if you are using a wrapper class or not but why not just build the pageBlockTable list within a
for loop
that has atry catch
- if an exception, the row in error is ignored