Exception handling and custom exception handling program