code: def error(self,stanza):
          
          err=stanza.get_error()
          self.__logger.debug("Error from: %r Condition: %r"
                  % (stanza.get_from(),err.get_condition))
docs: Called when an error stanza is received.
  
          :Parameters:
              - `stanza`: the stanza received.
          :Types:
              - `stanza`: `pyxmpp.stanza.Stanza`