public static String buildErrorMessage(int code, String detail) {
        return new StringBuilder().append(MSG_CODE).append(code).append(", ").append(detail).toString();
    }
Builds error message like {@code "Code: <code>, <detail>"}.

@param code   error code
@param detail detail of the error
@return non-null error message
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseException.java