#NEWLINE# def on_error( self , headers , body ) : #NEWLINE# #INDENT# '\n        Increment the error count. See :py:meth:`ConnectionListener.on_error`\n\n        :param headers: headers in the message\n        :param body: the message content\n        ' #NEWLINE# log . info ( 'received an error %s [%s]' , body , body ) #NEWLINE# self . errors += 1