Wipro interview question

How to handle exception in spring?