add exception handling condition