'Add an error to the reporter.'

def addError(self, testName, error, errorClass, frames):

    failure = self._buildFailure(error, errorClass, frames)
    self._result.addError(self._testCase, failure)
    return {'success': True}
