code: def error_received(self, exception):
          
          if exception is None:
              pass
          else:
              import pprint
              pprint.pprint(exception)
              _LOGGER.error('Error received: %s', exception)
docs: Datagram error callback.