Fido Alpha 3.2

fido.util
Class HtmlExceptionWriter

java.lang.Object
  |
  +--java.io.Writer
        |
        +--java.io.PrintWriter
              |
              +--fido.util.HtmlExceptionWriter

public class HtmlExceptionWriter
extends java.io.PrintWriter

Writes an exception stack trace to a Writer stream and formats it for displaying with an HTML browser. The first line, containing the exception name and message, is removed. Each line afterwards is appended a <BR> tag.


Field Summary
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
HtmlExceptionWriter(java.io.Writer out)
          Creates a new HtmlExeptionWriter instance using out as the underlying stream.
 
Method Summary
 void println(java.lang.Object o)
          Writes an object to the output stream.
 void println(java.lang.String str)
          Prints a string object to the underlying stream, plus appends a <BR> to the end for a line break on the page.
 
Methods inherited from class java.io.PrintWriter
checkError, close, flush, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlExceptionWriter

public HtmlExceptionWriter(java.io.Writer out)
Creates a new HtmlExeptionWriter instance using out as the underlying stream.

Parameters:
out - A character output stream.
Method Detail

println

public void println(java.lang.Object o)
Writes an object to the output stream. If the object is of type Throwable, the request is ignored. Otherwise println(Object) in the superclass PrintWriter is called.

Objects of type Throwable are ignored to remove the first line of exception stack traces. The Fido system prints the first line with html markup around the exception name which links it to the help system. When an exception occurs, the user can click on the exception name and get context sensitive help on the error.

Overrides:
println in class java.io.PrintWriter
Parameters:
o - Object to print to the underlying stream

println

public void println(java.lang.String str)
Prints a string object to the underlying stream, plus appends a <BR> to the end for a line break on the page.

Overrides:
println in class java.io.PrintWriter
Parameters:
str - String to print.

Fido Alpha 3.2