sample with different runtime errors