Implementing User Defined Exceptions
In addition to the built-in exceptions, you can create customized exception as per the application requirements. Each application that you create might have specific constraints. For example, in case of a train reservation application, a passenger must specify the destination. Also, a ticket has to be bought for a passenger who is above three years [...]





