Capgemini Interview Question

How to do the error handling in Queue processor?