Exception class
Exception handling in Main file
Fixed exception handling