Capgemini interview question

How to do the error handling in Queue processor?