Parse errorCell = makeMessageCell(e);
insertRowAfter(row, new Parse("tr", null, errorCell, null));
}
public Parse makeMessageCell(Exception e) {
Parse errorCell = new Parse("td", "", null, null);
final StringWriter buffer = new StringWriter();
e.printStackTrace(new PrintWriter(buffer));
errorCell.addToTag(" colspan=\"" + (columnBindings.length + 1) + "\"");
errorCell.addToBody("<i>" + ERROR_INDICATOR + e.getMessage() + "</i>");
errorCell.addToBody("<pre>" + (buffer.toString()) + "</pre>");
wrong(errorCell);
return errorCell;
}