コード例 #1
0
 private void input_err(String msg, String[] line, int lineno) {
   StringBuilder sb = new StringBuilder();
   sb.append(errHeader)
       .append(", line=")
       .append(lineno)
       .append(",")
       .append(msg)
       .append("\n\tvalues={");
   for (String val : line) {
     sb.append("'").append(val).append("',");
   }
   sb.append('}');
   throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, sb.toString());
 }
コード例 #2
0
 private void input_err(String msg, String[] lines, int lineNo, Throwable e) {
   StringBuilder sb = new StringBuilder();
   sb.append(errHeader)
       .append(", line=")
       .append(lineNo)
       .append(",")
       .append(msg)
       .append("\n\tvalues={");
   if (lines != null) {
     for (String val : lines) {
       sb.append("'").append(val).append("',");
     }
   } else {
     sb.append("NO LINES AVAILABLE");
   }
   sb.append('}');
   throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, sb.toString(), e);
 }