Exception handling added!

Every Code from now will be in try-catch block