removed deprecated use of getAllErrors