| 75 | } |
| 76 | |
| 77 | void 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 |
no test coverage detected