raise exception if transition fail