async def METHOD_NAME(self, exc):
    log.debug(traceback.format_exc())
    key = self.next_key()
    self.errors[key] = exc
    payload = {"id": key, "msg": ""}
    if isinstance(exc, MarkdAsDriverException):
        wrapped_exc = exc.wrapped_exc
        payload["errorType"] = str(type(wrapped_exc))
        if wrapped_exc.args:
            payload["msg"] = self._exc_msg(wrapped_exc.args[0])
        payload["retryable"] = False
    else:
        payload["errorType"] = str(type(exc))
        payload["msg"] = self._exc_msg(exc)
        if isinstance(exc, Neo4jError):
            payload["code"] = exc.code
        payload["retryable"] = getattr(exc, "is_retryable", bool)()
    await self.send_response("DriverError", payload)