maha | adding exception handling to control the error flow scenario