Pregunta de entrevista de Tata Consultancy Services

How to create custom expections in Python?