Infosys Solutions interview question

did u ever had to write custom exception class?