public void setExceptionResult(ExceptionResult exceptionResult) { if (this.exceptionResult == null) { this.exceptionResult = exceptionResult; setContent( String.format( "%s <span class=\"%s\">%s</span>", originalContent, exceptionResult.getExecutionResult().toString(), Utils.escapeHTML(exceptionResult.getMessage()))); } }
@Override public void updateContent(int colIndex, int rowIndex, ExceptionResult exceptionResult) { Row row = rows.get(rowIndex); Cell cell = row.getColumn(colIndex); if (exceptionResult.hasMessage()) { cell.setExceptionResult(exceptionResult); } else { Row childRow = makeChildRow( row, new TextNode("<pre>" + Utils.escapeHTML(exceptionResult.getException()) + "</pre>"), "exception"); insertRowAfter(row, childRow); row.setExecutionResult(exceptionResult.getExecutionResult()); } }