replaced throwable with exception in catch block