<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def addError(self, test, err, capt=None):
 """ After a test error, we want to record testcase run information. """

        self.__insert_test_result(constants.State.ERROR, test, err)