class RuntimeErrorFormatter extends UriProcessingFormatter
implements CoreAttributeConstants {

    public RuntimeErrorFormatter(boolean logExtraInfo) {
        super(logExtraInfo);
    }

    public String format(LogRecord lr) {<FILL_FUNCTION_BODY>}
}

        Object [] parameters = lr.getParameters();
        String stackTrace = "None retrieved";
        if (parameters != null) {
            // CrawlURI is always first parameter.
            CrawlURI curi = (CrawlURI)parameters[0];
            if (curi != null) {
                Throwable t = (Throwable)curi.getData().get(A_RUNTIME_EXCEPTION);
                assert t != null : "Null throwable";
                StringWriter sw = new StringWriter();
                if (t == null) {
                    sw.write("No exception to report.");
                } else {
                    t.printStackTrace(new PrintWriter(sw));
                }
                stackTrace = sw.toString();
            }
        }
        return super.format(lr) + " " + stackTrace;
    
<methods>public void <init>(boolean) ,public void clear() ,public java.lang.String format(java.util.logging.LogRecord) ,public void preformat(java.util.logging.LogRecord) <variables>private static final int GUESS_AT_LINE_LENGTH,private static final java.lang.String NA,protected final ThreadLocal<java.lang.StringBuilder> bufLocal,protected final ThreadLocal<java.lang.String> cachedFormat,protected boolean logExtraInfo