An example program demonstrating custom exceptions being handled.