Trigent Software interview question

How to Userdefined exceptions in spring boot