code: def parseErrorAndResponse(self, data):
          
  
          xml = fromstring(data)
          error = xml.find('.//ERROR')
  
          if error is None:
              self.deferred.callback(self.parseResponse(xml))
              return
  
          try:
              code = int(error.attrib['CODE'])
          except ValueError:
              code = 0
  
          self.deferred.errback(CIMError(code, error.attrib['DESCRIPTION']))
docs: Parse returned XML for errors, then convert into
          appropriate Python objects.