Fetch the error of the query.
(self, operation_handle)
| 1059 | return self.__get_operation(operation_handle).fetch(max_rows=max_rows) |
| 1060 | |
| 1061 | def fetch_error(self, operation_handle): |
| 1062 | """ |
| 1063 | Fetch the error of the query. |
| 1064 | """ |
| 1065 | try: |
| 1066 | self.fetch(None, operation_handle) |
| 1067 | assert False, "Failed to catch the error of the query." |
| 1068 | except Exception as exc: |
| 1069 | return exc |
| 1070 | |
| 1071 | def get_state(self, operation_handle): |
| 1072 | return self.__get_operation(operation_handle).get_status() |