MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / sendException

Method sendException

src/Server/GRPCServer.cpp:1803–1812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1801 }
1802
1803 void Call::sendException(const Exception & exception)
1804 {
1805 auto & grpc_exception = *result.mutable_exception();
1806 grpc_exception.set_code(exception.code());
1807 grpc_exception.set_name(exception.name());
1808 grpc_exception.set_display_text(exception.displayText());
1809 if (send_exception_with_stacktrace)
1810 grpc_exception.set_stack_trace(exception.getStackTraceString());
1811 sendResult();
1812 }
1813}
1814
1815

Callers

nothing calls this directly

Calls 5

set_nameMethod · 0.80
displayTextMethod · 0.80
getStackTraceStringMethod · 0.80
codeMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected