code: def errorReceived(self, merr):
          
          d, timeout = self._pendingCalls.get(merr.reply_serial, (None, None))
          if timeout:
              timeout.cancel()
          if d:
              del self._pendingCalls[merr.reply_serial]
              e = error.RemoteError(merr.error_name)
              e.message = ''
              e.values = []
              if merr.body:
                  if isinstance(merr.body[0], six.string_types):
                      e.message = merr.body[0]
                  e.values = merr.body
              d.errback(e)
docs: Called when an error message is received