Synechron interview question

How to handle exception in Spring-boot?