Infosys Interview Question

Write a program for custom exception.