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

Function writeException

src/IO/WriteHelpers.cpp:77–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void writeException(const Exception & e, WriteBuffer & buf, bool with_stack_trace)
78{
79 writeBinaryLittleEndian(e.code(), buf);
80 writeBinary(String(e.name()), buf);
81 writeBinary(e.displayText() + getExtraExceptionInfo(e), buf);
82
83 if (with_stack_trace)
84 writeBinary(e.getStackTraceString(), buf);
85 else
86 writeBinary(String(), buf);
87
88 bool has_nested = false;
89 writeBinary(has_nested, buf);
90}
91
92
93/// The same, but quotes apply only if there are characters that do not match the identifier without quotes

Callers 7

sendExceptionMethod · 0.50
writeSuffixMethod · 0.50
finalizeImplMethod · 0.50
finalizeImplMethod · 0.50
writeSuffixMethod · 0.50
createErrorNodeMethod · 0.50

Calls 8

writeBinaryLittleEndianFunction · 0.85
getExtraExceptionInfoFunction · 0.85
displayTextMethod · 0.80
getStackTraceStringMethod · 0.80
writeBinaryFunction · 0.70
StringClass · 0.50
codeMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected