def _wrap_exception(self, e, msg):
        self.log.exception(msg)
        if isinstance(e, ConcurrenceTimeoutError):
            return TimeoutError(msg + ': ' + str(e))
        else:
            return Error(msg + ': ' + str(e))
dataset/ETHPy150Open concurrence/concurrence/lib/concurrence/database/mysql/dbapi.py/Cursor._wrap_exception/original