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

Method sendException

src/Server/GRPCServer.cpp:1549–1558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1547 }
1548
1549 void Call::sendException(const Exception & exception)
1550 {
1551 auto & grpc_exception = *result.mutable_exception();
1552 grpc_exception.set_code(exception.code());
1553 grpc_exception.set_name(exception.name());
1554 grpc_exception.set_display_text(exception.displayText());
1555 if (send_exception_with_stacktrace)
1556 grpc_exception.set_stack_trace(exception.getStackTraceString());
1557 sendResult();
1558 }
1559}
1560
1561

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected