def METHOD_NAME(self, query, request_env, mindsdb_env, session):
    try:
        res = self._result(query, request_env, mindsdb_env)
    except Exception as e:
        res = {
            'n': 0,
            'writeErrors': [{
                'index': 0,
                'code': 0,
                'errmsg': str(e)
            }],
            'ok': 1
        }
    return res