HCLTech interview question

Show me how to write custom exceptions