com.acsinet_solutions.util.exception
Class HTMLExceptionDataWriter

java.lang.Object
  extended by com.acsinet_solutions.util.exception.AbstractExceptionDataWriter
      extended by com.acsinet_solutions.util.exception.HTMLExceptionDataWriter
All Implemented Interfaces:
ExceptionDataWriter

public final class HTMLExceptionDataWriter
extends AbstractExceptionDataWriter
implements ExceptionDataWriter

Generic exception data writer that writes exception info to stderr

Author:
Santiago Arriaga

Constructor Summary
HTMLExceptionDataWriter(java.io.Writer writer)
           
 
Method Summary
protected  void endException()
          Exception end
protected  void printMessage(java.lang.String message)
          Print message for an exception
protected  void printStackTraceEntry(int line, java.lang.String entry)
          Print an stack trace entry
protected  void startException(boolean start)
          Exception starts
 
Methods inherited from class com.acsinet_solutions.util.exception.AbstractExceptionDataWriter
getStop, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.acsinet_solutions.util.exception.ExceptionDataWriter
write
 

Constructor Detail

HTMLExceptionDataWriter

public HTMLExceptionDataWriter(java.io.Writer writer)
Parameters:
writer - A not-null valid Writer instance
Method Detail

startException

protected final void startException(boolean start)
                             throws java.io.IOException
Exception starts

Specified by:
startException in class AbstractExceptionDataWriter
Parameters:
start - true if this is the first exception; false otherwise
Throws:
java.io.IOException

endException

protected final void endException()
                           throws java.io.IOException
Exception end

Specified by:
endException in class AbstractExceptionDataWriter
Throws:
java.io.IOException

printMessage

protected final void printMessage(java.lang.String message)
                           throws java.io.IOException
Print message for an exception

Specified by:
printMessage in class AbstractExceptionDataWriter
Parameters:
message - A not-null String instance
Throws:
java.io.IOException

printStackTraceEntry

protected final void printStackTraceEntry(int line,
                                          java.lang.String entry)
                                   throws java.io.IOException
Print an stack trace entry

Specified by:
printStackTraceEntry in class AbstractExceptionDataWriter
Parameters:
pos - The nonnegative line position
entry - A not-null String instance
Throws:
java.io.IOException