| 102 | } |
| 103 | |
| 104 | void 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 |
no test coverage detected