class_docstr: A test result class that can express test results in a XML report.
  
  Used by XMLTestRunner.
docstr: Called when a test method raises an error.
docstr_tok: ["Called","when","a","test","method","raises","an","error","."]
code: def addError(self, test, err):
      "Called when a test method raises an error."
      self._prepare_callback(
          _TestInfo(self, test, _TestInfo.ERROR, err),
          self.errors,
          "ERROR",
          "E",
      )
  
imports: from __future__ import absolute_import
  import os
  import sys
  import time
  from unittest import TestResult, TextTestResult, TextTestRunner
  import xml.dom.minidom
label_desc: Use image node_id 9 for calling the _XMLTestResult obj's underlying member method code with example usage: obj.addError(test, err) without return types