Domanda di colloquio di Tata Consultancy Services

How to create custom expections in Python?