Added an helper class for tracking and reporting errors.