+ Start a Discussion
smitha pais 8smitha pais 8 

how to pass ids to catch block

I have passed The failed records from by database.update operation (throw new Customexception(failedRecordIdSet);),
to the Custom Exception class 
public Set<Id> handleExceptionIds(Set<Id> ids){
        return ids;

and in my vf page controller i need to catch these record ids so that i can display the errored records to the users.

Is there a way to pass record ids to the catch block.