palio
Class ErrorFormatter

java.lang.Object
  extended by palio.ErrorFormatter

public abstract class ErrorFormatter
extends java.lang.Object

A abstract class for error formatting.

Author:
Krzysztof Synowiec

Field Summary
static ErrorFormatter HTML_STYLE
           
 
Constructor Summary
ErrorFormatter()
           
 
Method Summary
static void printStackTrace(java.io.PrintWriter out, java.lang.Throwable ex)
           
abstract  void writeError(java.io.PrintWriter out, java.lang.String message, java.lang.Object exception)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTML_STYLE

public static final ErrorFormatter HTML_STYLE
Constructor Detail

ErrorFormatter

public ErrorFormatter()
Method Detail

writeError

public abstract void writeError(java.io.PrintWriter out,
                                java.lang.String message,
                                java.lang.Object exception)
                         throws java.io.IOException
Throws:
java.io.IOException

printStackTrace

public static void printStackTrace(java.io.PrintWriter out,
                                   java.lang.Throwable ex)