MCPcopy Create free account
hub / github.com/ByConity/ByConity / constructException

Function constructException

src/Interpreters/executeSubQuery.cpp:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51std::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
63void executeSubQueryWithoutResult(const String & query, ContextMutablePtr query_context, bool internal)
64{

Callers 5

executeSubQueryFunction · 0.85
executeSubPipelineFunction · 0.85

Calls 6

getCurrentExceptionCodeFunction · 0.85
needThrowRootCauseErrorFunction · 0.85
getCurrentQueryIdMethod · 0.80
ExceptionClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected