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

Function writeException

src/IO/WriteHelpers.cpp:104–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void writeException(const Exception & e, WriteBuffer & buf, bool with_stack_trace)
105{
106 writeBinary(e.code(), buf);
107 writeBinary(String(e.name()), buf);
108 writeBinary(e.displayText(), buf);
109
110 if (with_stack_trace)
111 writeBinary(e.getStackTraceString(), buf);
112 else
113 writeBinary(String(), buf);
114
115 bool has_nested = false;
116 writeBinary(has_nested, buf);
117}
118
119
120/// The same, but quotes apply only if there are characters that do not match the identifier without quotes

Callers 2

sendExceptionMethod · 0.85
handleExceptionFunction · 0.85

Calls 6

displayTextMethod · 0.80
getStackTraceStringMethod · 0.80
writeBinaryFunction · 0.70
StringClass · 0.50
codeMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected