Holger's
Java API

com.antelmann.util.logging
Class ExceptionDialogWriter

java.lang.Object
  extended by com.antelmann.util.logging.AbstractLogWriter<Throwable>
      extended by com.antelmann.util.logging.ExceptionDialogWriter
All Implemented Interfaces:
Filter<LogEntry>, LogWriter

public class ExceptionDialogWriter
extends AbstractLogWriter<Throwable>

shows a dialog upon each Throwable encountered. By default it uses a filter that only accepts those entries that contain a Throwable.

Author:
Holger Antelmann
See Also:
LogEntry.getThrown(), Menus.showExceptionDialog(Component, Throwable)

Field Summary
 
Fields inherited from class com.antelmann.util.logging.AbstractLogWriter
filter
 
Constructor Summary
ExceptionDialogWriter(Component parent)
           
 
Method Summary
 void writeLogPattern(Throwable t)
          writes the pattern to the log entity.
 
Methods inherited from class com.antelmann.util.logging.AbstractLogWriter
accept, getLogFilter, getLogFormatter, setLogFilter, setLogFormatter, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionDialogWriter

public ExceptionDialogWriter(Component parent)
Method Detail

writeLogPattern

public void writeLogPattern(Throwable t)
Description copied from class: AbstractLogWriter
writes the pattern to the log entity. If the LogEntryFormatter is null, the pattern is the LogEntry object itself; otherwise, the pattern is the result of formatting the LogEntry with the given LogEntryFormatter.

Specified by:
writeLogPattern in class AbstractLogWriter<Throwable>


(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads