| 49 | } |
| 50 | |
| 51 | std::exception_ptr constructException(ContextMutablePtr query_context) |
| 52 | { |
| 53 | auto exception_code = getCurrentExceptionCode(); |
| 54 | auto exception = getCurrentExceptionMessage(false); |
| 55 | |
| 56 | bool throw_root_cause = needThrowRootCauseError(query_context.get(), exception_code, exception); |
| 57 | if (!throw_root_cause) |
| 58 | exception = fmt::format("Query [{}] failed with : {}", query_context->getCurrentQueryId(), exception); |
| 59 | |
| 60 | return std::make_exception_ptr(Exception(std::move(exception), exception_code)); |
| 61 | } |
| 62 | |
| 63 | void executeSubQueryWithoutResult(const String & query, ContextMutablePtr query_context, bool internal) |
| 64 | { |
no test coverage detected